In the 1867 Canadian Confederation, three provinces of British North America—New Brunswick, Nova Scotia, and the Province of Canada (which upon Confederation was divided into Ontario and Quebec)—united to form a federation, becoming a fully independent country over the next century.