The first permanent settlement was the Plymouth Colony (1620), and the second major settlement was the Massachusetts Bay Colony at Salem in 1629. Settlements that failed or were merged into other colonies included the failed Popham Colony (1607) on the coast of Maine, and the Wessagusset Colony (1622–23) in Weymouth, Massachusetts, whose remnants were folded into the Plymouth Colony. The Plymouth and Massachusetts Bay colonies coexisted until 1686, each electing its own governor annually. Governance of both colonies was dominated by a relatively small group of magistrates, some of whom governed for many years. The Dominion of New England was established in 1686 which covered the territory of those colonies, as well as that of New Hampshire, Connecticut, and Rhode Island. In 1688, it was further extended to include New York and East and West Jersey. The Dominion was extremely unpopular in the colonies, and it was disbanded when its royally appointed governor Sir Edmund Andros was arrested and sent back to England in the wake of the 1688 Glorious Revolution.