Until 1820, Maine was part of Massachusetts. After the 1810 census, Massachusetts was allocated 20 districts. Seven Massachusetts districts (then numbered through ) were credited to Maine soon after it became a state in 1820. See District of Maine.