Beginning with the 1763 Treaty of Paris, Canada came under British rule when New France, of which the colony of Canada was a part, formally became a part of the British Empire.
Several major events took place during the era of British rule time that affected what is generally referred to as British North America, including the American Revolution, the War of 1812, and the Rebellions of 1837. British imperial control of Canada did not end in 1867. A number of colonies of British North America, such as Newfoundland and British Columbia, and large territories such as Rupert's Land initially remained outside of the newly formed federation.
Following Confederation, the Dominion of Canada itself also remained part of the British Empire and was constitutionally subject to imperial control until the enactment of the Statute of Westminster in 1931. The Statute of Westminster gave the Dominion legislative sovereignty on all matters except with regards to the constitutional laws of Canada, which remained under the legal control of the Parliament of the United Kingdom. Canada's final vestige of legal dependence on the United Kingdom was terminated in 1982 with the enactment of the Canada Act, which transferred control over the constitution over to the country.