In 1841, Lower Canada (now Quebec) and Upper Canada (now Ontario) joined to form the Province of Canada. Its seat of government alternated for many years. In 1857, Queen Victoria was asked to select a permanent capital.
Surprisingly, the Queen chose the rough-and-ready lumber town of Ottawa over the established cities of Toronto, Kingston, Montréal and Québec City. Not only was Ottawa a political compromise but it also lay a more secure distance from the American border.
The Centre, East and West blocks of the Parliament Buildings were built between 1859 and 1866 (excluding the Tower and Library). One year after their completion, Confederation was brought in, and the buildings were immediately chosen as the seat of government for the new Dominion of Canada.