Ottawa is the capital of Canada and the country's fourth largest city, as well as the second largest city in the province of Ontario after the provincial capital of Toronto. It is located in the Ottawa Valley on the eastern edge of the province of Ontario, 400 kilometres (250 mi) east of Toronto and 190 kilometres (120 mi) west of Montreal. Ottawa lies on the banks of the Ottawa River, a major waterway that forms the border between Ontario and Quebec.