As president, Adams called for an ambitious agenda that included federally funded infrastructure projects, the establishment of a national university, and engagement with the countries of Latin America, but Congress refused to pass many of his initiatives. During Adams's presidency, the Democratic-Republican Party split into two major camps: the National Republican Party, which supported President Adams, and Andrew Jackson's Democratic Party. The Democrats proved to be more effective political organizers than Adams and his National Republican supporters, and Jackson soundly defeated Adams in the 1828 presidential election, making Adams the second president to fail to win re-election (his father being the first).
Rather than retiring from public service, Adams won election to the House of Representatives, where he would serve from 1831 until his death in 1848. He remains the only former president to be elected to the chamber. After narrowly losing his bids for Governor of Massachusetts and Senate re-election, Adams joined the Anti-Masonic Party in the early 1830s before joining the Whig Party, which united those opposed to President Jackson. During his time in Congress, Adams became increasingly critical of slavery and of the Southern leaders whom he believed controlled the Democratic Party. 