1825 Contingent election
http://en.wikipedia.org/wiki/United_States_presidential_election,_1824#1825_Contingent_election
The presidential election was thrown to the U.S. House of Representatives. Following the provisions of the Twelfth Amendment, only the top three candidates in the electoral vote were admitted as candidates in the House: Andrew Jackson, John Quincy Adams, and William Harris Crawford. Henry Clay, who happened to be Speaker of the House, was left out. Clay detested Jackson and had said of him, I cannot believe that killing 2,500 Englishmen at New Orleans qualifies for the various, difficult, and complicated duties of the Chief Magistracy.[7] Moreover, Clay's American System was far closer to Adams' position on tariffs and internal improvements than Jackson's or Crawford's, so Clay threw his support to Adams, who had many more votes than Clay. John Quincy Adams was elected President on February 9, 1825, on the first ballot,[8][9] with 13 states, followed by Jackson with 7, and Crawford with 4.
Adams' victory shocked Jackson, who, as the winner of a plurality of both the popular and electoral votes, expected to be elected president. Interestingly enough, not too long before the results of the House election, an anonymous statement appeared in a Philadelphia paper, called the Columbian Observer. The statement, said to be from a member of Congress, essentially accused Clay of selling Adams his support for the office of Secretary of State. No formal investigation was conducted, so the matter was neither confirmed nor denied. When Clay was indeed offered the position after Adams was victorious, he opted to accept and continue to support the administration he voted for, knowing that declining the position would not have helped to dispel the rumors brought against him.[10] By appointing Clay his Secretary of State, President Adams essentially declared him heir to the Presidency, as Adams and his three predecessors had all served as Secretary of State. Jackson and his followers accused Adams and Clay of striking a corrupt bargain. The Jacksonians would campaign on this claim for the next four years, ultimately attaining Jackson's victory in the Adams-Jackson rematch in 1828.