During the American Revolution, revolutionary troops from the southern colonies assaulted the British garrison in an attempt to 'liberate' Quebec City now known as the Battle of Quebec. The defeat of the revolutionaries from the south put an end to the hopes that the peoples of Quebec would rise and join the Revolution. Major General Isaac Brock fortified Quebec City by strengthening the walls and building an elevated artillery battery before the War of 1812.
In 1840, after the Province of Canada was formed, the capital was shared between Kingston, Montreal, Toronto, Ottawa and Quebec City (from 1852 to 1856 and from 1859 to 1866). In 1867, Ottawa (which was chosen to be the permanent capital of the Province of Canada) was chosen to be the capital of the Dominion of Canada. The Quebec Conference on Canadian Confederation was held here.
Quebec City is the capital of the Canadian province of Quebec and is located within the Capitale-Nationale region. It is the second largest city in the province, after Montreal. Quebec City is about 233 kilometres (145 mi) away from Montreal. The ramparts surrounding Old Quebec (Vieux-Québec) are the only remaining fortified city walls in the Americas north of Mexico, and were declared a World Heritage Site by UNESCO in 1985 as the "Historic District of Old Quebec". It is also one of the oldest cities in North America (founded in 1608). As of the 2006 Canadian Census, the city has a population of 491,142, and the metropolitan area has a population of 715,515.
The narrow width of the river as it enters the towns of Quebec and Lévis, on the opposite bank, provided the name given to the city, Kébec being the Algonquin word meaning "where the river narrows". Quebec City is internationally known for its Summer Festival, Winter Carnival and the Château Frontenac, a historic hotel which dominates the city skyline. The National Assembly of Quebec (provincial parliament), the Musée national des beaux-arts du Québec (National Museum of Fine Arts) and the Musée de la civilisation (Museum of Civilization) are found within or near Vieux-Québec.
Among the tourist attractions near the city are Montmorency Falls and the Basilica of Sainte-Anne-de-Beaupré in the town of Sainte-Anne-de-Beaupré.