After loosing the election of 1824 in a controversial way, Andrew Jackson viewed John Quincy Adams as an aristocrat who used his connections to gain political support. This is why:
The popular votation ended with Jackson holding 41,36% of the votes, beating Adams who only had 30,92%, and leaving behind other two candidates with fewer percents, Henry Clay and William H. Crawford . But in the Electoral College things were different: Jackson had 99 electors, Adams had 84, Crawford had 41, and Clay had 37. As any of them had an absolute majority, under the 12th amendment, the United States House of Representatives had to choose between the three most voted candidates: Jackson, Adams and Crawford. Clay, who had been left out, was the president of the US House of Representatives and, as he hated Jackson, convinced the House to vote for Adams. That's how Adams was elected to be the President of the United States, without Clay's support it would have been a Jackson's victory.
After that, Adams appointed Clay as Secretary of State, which outraged both Jackson and his followers. Jackson denounced Clay's role in Adams's victory as well as Clay's subsequent appointment as Secretary of State as a "corrupt bargain".