In 1824, the candidates the last time the presidential election went to the House of Representatives were Andrew Jackson, John Quincy Adams, William H. Crawford, and Henry Clay.
Jackson won a plurality of both the electoral and popular votes, but not a majority in the Electoral College.
In accord with the Constitution, the election was decided by the House of Representatives, which chose Adams.
Jackson got his revenge when he defeated Adams for reelection four years later.