 He served in the Pennsylvania General Assembly from 1825 to 1831 and served in the 23rd United States Congress as a Jacksonian from Pennsylvania's sixth district, March 4, 1833 to March 3, 1835.He didn't run for a second term to the 24th Congress, but did win reelection later in 1840 to the 27th Congress, still representing the sixth district, but this time as a Whig.He served from March 4, 1841 to March 3, 1843.