The province within its current boundaries became part of #Massachusetts Bay #Colony in 1652. #Maine was much fought over by the French, English and allied natives during the 17th and early 18th centuries, who conducted raids against each other, taking captives for ransom or, in some cases, adoption by #NativeAmerican #tribes.
After the British defeated the #French in #Acadia in the 1740s, the territory from the #Penobscot River east fell under the nominal authority of the Province of Nova Scotia, and together with present-day New Brunswick formed the Nova Scotia county of Sunbury, with its court of general sessions at #Campobello. #American and #British forces contended for Maine's territory during the #AmericanRevolution and the War of #1812, with the British occupying eastern Maine in both conflicts. The territory of Maine was confirmed as part of Massachusetts when the United States was formed following the Treaty of Paris ending the revolution, although the final border with British #NorthAmerica was not established until the Webster–Ashburton Treaty of 1842.
Maine was physically separate from the rest of Massachusetts. Long-standing disagreements over land speculation and settlements led to Maine residents and their allies in Massachusetts proper forcing an 1807 vote in the Massachusetts Assembly on permitting Maine to secede; the vote failed. #Secessionist sentiment in Maine was stoked during the War of 1812 when Massachusetts pro-British merchants opposed the war and refused to defend Maine from British invaders. In 1819, Massachusetts agreed to permit secession, sanctioned by voters of the rapidly growing region the following year. Formal secession and formation of the #state of Maine as the 23rd state occurred on March 15, 1820, as part of the Missouri Compromise, which geographically limited the spread of slavery and enabled the admission to statehood of Missouri the following year, keeping a balance between slave and free states.
Maine's original capital was #Portland, Maine's largest city, until it was moved to the more central #Augusta in 1832. The principal office of the Maine Supreme Judicial Court remains in Portland.