The Library of Parliament's roots lie in the 1790s, when the legislative libraries of Upper and Lower Canada were created; these operated separately until the creation of the Province of Canada in 1841 and the collections were amalgamated and followed the provincial capital as it moved between Kingston, Montreal, Toronto, and Quebec City. The library was to be established in Ottawa after, in 1867, Queen Victoria chose Bytown as the new seat for her crown in the Dominion of Canada, and the Library of Parliament Act formed the institution in 1871.