John Quincy Adams
Adams was elected president by the United States House of Representatives after the 1824 United States presidential election gave nobody a majority of electoral votes.  People who wanted Andrew Jackson to win said there was a deal between Adams and Speaker of the House Henry Clay; Adams had made Clay his Secretary of State. This was called the "corrupt bargain".