In the election of 1824, Jackson had won the popular vote, but because there were four major candidates, no one received a majority of electoral votes. Jackson had 99 to John Quincy Adams’s 84, with 78 electoral votes given to the other two candidates. However, when the vote went to the House of Representatives, under electoral law, John Adams got the most votes and became president.