Canada became a country on July 1, 1867, when the British North America Act was passed by the British Parliament, officially creating the Dominion of Canada. This marked the unification of the provinces of Ontario, Quebec, New Brunswick, and Nova Scotia into a self-governing nation within the British Empire. While Canada gained further legislative independence over time, full independence with control over its own constitution was achieved in 1982. July 1, 1867, is celebrated as Canada Day, marking the country's birth as a nation.