Maine was part of Massachusetts before becoming its own state in 1820.