The man lost the president because of the corrupt election was brought to light. 
Adams won the presidency only because Henry Clay backed him in the run-off in the House of Representatives, but Adams never lived down (false) rumors that he and Clay had cut a Corrupt Bargain.