 He was elected as a Democrat to the Twenty-fifth and Twenty-sixth Congresses, serving from March 4, 1837 until March 3, 1841.While in Congress, he was the Chairman of the Committee on Patents.He was an unsuccessful candidate for reelection in 1840 to the Twenty-seventh Congress.