The fissures in the party were fully exposed by the election of 1824, when the leaders of the two major factions, Andrew Jackson and John Quincy Adams, were both nominated for president. Meanwhile, William H. Crawford was nominated by the party's congressional caucus, and Henry Clay, another Democratic-Republican, was nominated by the Kentucky and Tennessee legislatures. Jackson carried the popular vote and a plurality in the electoral college, but because no candidate received a majority of the electoral vote, the presidency was decided by the House of Representatives. Clay, the speaker of the House of Representatives, finished fourth and was thus ineligible for consideration; he subsequently threw his support to Adams, who was elected president and promptly appointed Clay secretary of state. Following the election, the Democratic-Republicans split into two groups: the National Republicans, who became the nucleus of the Whig Party in the 1830s, were led by Adams and Clay, while the Democratic-Republicans were organized by Martin Van Buren, the future eighth president (1837-41), and led by Jackson.