In 1867, with the union of three British North American colonies through Confederation, Canada was formed as a federal dominion of four provinces. This began an accretion of provinces and territories and a process of increasing autonomy from the British Empire, which became official with the Statute of Westminster of 1931 and completed in the Canada Act of 1982