He was elected to the Continental Congress in 1783 and 1784, but did not attend. He served as a Massachusetts state senator from 1785-1788, and was appointed to the U.S. Senate in 1788. He served from March 4, 1789, to March 3, 1791. He was an unsuccessful candidate for reelection in 1790. Much later, he served as surveyor of the port of Boston from November 1814 until his death on May 30, 1817. He is interred in the churchyard of St. Paul’s Episcopal Church in Newburyport.