He also served as a member of the New Hampshire House of Representatives 1807–1809, 1812, 1813, 1821–1826, 1830, and 1832–1834 and as an associate judge of the court of common pleas 1823 and 1827.
He was elected as a Jacksonian to the Twenty-fourth Congress and reelected as a Democrat to the Twenty-fifth Congress (March 4, 1835 – March 3, 1839).