Member Party Years ↑ Cong ress Electoral history District location District created March 4, 1821 Joshua Cushman (Winslow ) Democratic-Republican March 4, 1821 – March 3, 1823 17th Redistricted from Massachusetts's 19th district and re-elected in 1820 . Redistricted to the 4th district . 1821 – 1823 Kennebec County (partial) and Somerset County [ 1] Jeremiah O'Brien (Machias ) Democratic-Republican March 4, 1823 – March 3, 1825 18th 19th 20th Elected in 1823 on the third ballot . Re-elected in 1824 . Re-elected in 1826 . Lost re-election as a Jacksonian. 1823 – 1833 Hancock County (partial) and Washington County [ 2] Anti-Jacksonian March 4, 1825 – March 3, 1829 Leonard Jarvis (Ellsworth ) Jacksonian March 4, 1829 – March 3, 1833 21st 22nd Elected in April 1830 on the sixth ballot. [ a] Re-elected in September 1830 . [ b] Redistricted to the 7th district . Joseph Hall (Camden ) Jacksonian March 4, 1833 – March 3, 1837 23rd 24th Elected in 1833 . Re-elected in 1834 . Retired. 1833 – 1843 [ data missing ] Hugh J. Anderson (Belfast ) Democratic March 4, 1837 – March 3, 1841 25th 26th Elected in 1836 . Re-elected in 1838 . Retired. Alfred Marshall (China ) Democratic March 4, 1841 – March 3, 1843 27th Elected in 1840 . Retired. Hannibal Hamlin (Hampden ) Democratic March 4, 1843 – March 3, 1847 28th 29th Elected in 1843 . Re-elected in 1844 . Retired to run for U.S. senator . 1843 – 1853 [ data missing ] James S. Wiley (Dover ) Democratic March 4, 1847 – March 3, 1849 30th Elected in 1846 . Retired. Charles Stetson (Bangor ) Democratic March 4, 1849 – March 3, 1851 31st Elected in 1848 . Lost renomination. Israel Washburn Jr. (Orono ) Whig March 4, 1851 – March 3, 1853 32nd Elected in 1850 . Redistricted to the 5th district . Thomas Fuller (Calais ) Democratic March 4, 1853 – March 3, 1857 33rd 34th Redistricted from the 7th district and re-elected in 1852 . Elected in 1854 . Retired. 1853 – 1863 [ data missing ] Stephen Clark Foster (Pembroke ) Republican March 4, 1857 – March 3, 1861 35th 36th Elected in 1856 . Re-elected in 1858 . Retired. Frederick A. Pike (Calais ) Republican March 4, 1861 – March 3, 1863 37th Elected in 1860 . Redistricted to the 5th district . District eliminated March 3, 1863