The area of New Hampshire was part of the original territory of the United States. It was originally included in the Charter of New England in 1620, but a separate grant established New Hampshire in 1629. In 1641, the area reunited with Massachusetts, and separated and reunited several times until it finally became a separate provincial government in 1741. New Hampshire ratified the U.S. Constitution on June 21, 1788; it was the ninth of the original 13 states to join the Union. The state's boundary with Canada was not formally established until the Webster-Ashburton Treaty of 1842, when New Hampshire assumed generally the same boundary as the present state.