He was in the Pennsylvania General Assembly from 1825 to 1831 and in the 23rd United States Congress as a Jacksonian from Pennsylvania's sixth district from March 4, 1833, to March 3, 1835.
He did not 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, this time as a Whig.
He once again did not run for reelection and instead left Congress to engage in agricultural pursuits.
Ramsey died in Warwick, Pennsylvania, on December 12, 1849.
This article about a member of the United States House of Representatives from Pennsylvania is a stub.