He was elected to the Maine Legislature in 1829 and held political offices on and off the rest of his life, becoming the 2nd Mayor of Bangor (1836–37), then Governor, and then U.S. Consul in Rio de Janeiro (1849–53).