The history of Nova Scotia covers a period from thousands of years ago to the present day. Prior to European colonization, the lands encompassing present-day Nova Scotia (also historically referred to as Mi'kma'ki and Acadia) were inhabited by the Mi'kmaq people. During the first 150 years of European settlement, the region was claimed by France and a colony formed, primarily made up of Catholic Acadians and Mi'kmaq. This time period involved six wars in which the Mi'kmaq along with the French and some Acadians resisted the British invasion of the region (see the four French and First Nation Wars, Father Rale's War and Father Le Loutre's War). During Father Le Loutre's War, the capital was moved from Annapolis Royal, Nova Scotia, to the newly established Halifax, Nova Scotia (1749). The warfare ended with the Burying the Hatchet ceremony (1761). After the colonial wars, New England Planters and Foreign Protestants emigrated to Nova Scotia. After the American Revolution, Loyalists emigrated to the colony. During the nineteenth century, Nova Scotia became self-governing in 1848 and joined the Canadian Confederation in 1867.