John Quincy Adams won over Andrew Jackson and Clay was made Secretary of State even though Jackson won the most votes. The speaker of the house, Clay, didn’t like Jackson so he supported Quincy Adams and may have had to do with the Congress electing Adams