During the election of 1824, Andrew Jackson lost to John Quincy Adams. No one got the majority needed to be president, so the decision got sent to the House. Jackson had more votes (99) than Adams (84), but Adams ended up winning due to some "corrupt bargain" with Henry Clay, who influenced the House to vote Adams instead of Jackson.