1824.
“Andrew Jackson won a slight plurality in the popular vote, leading John Quincy Adams by 38,149 votes. Four candidates received Electoral votes, though none received enough to constitute a majority:
Andrew Jackson received 99 Electoral votes.
John Quincy Adams received 84 Electoral votes.
William H. Crawford received 41 Electoral votes.
Henry Clay received 37 Electoral votes.
Since there was no majority within the Electoral College, the decision was deferred to the House of Representatives. The House is only allowed to vote on the top three contenders from the Electoral College so Henry Clay was removed from the election.
Adams, who was Jackson’s most viable competition, sought Clay’s support, knowing it would bring him victory. As the vote neared, Clay worked hard rounding up support for Adams. He won over Western representatives whose states had voted solidly for Jackson and even promised the votes of his home state Kentucky, which had not cast a single popular vote for Adams. After more than a month of bargaining, John Quincy Adams took precisely the 13 states he needed to win, Jackson won seven, and Crawford won four. ”
Source