During Andrew Jackson's presidency in the 1820s-1830s, there was a growing spirit of democracy in the US. The election of 1824 was contested, and though Andrew Jackson won the popular and electoral votes, it was decided by the House of Representatives, where John Quincy Adams was elected instead. This led Jackson's supporters to cry "corrupt bargain" and helped usher in the two-party system. Jackson went on to win the presidency in 1828 on behalf of the common man. His inauguration marked the rise of Jacksonian democracy and the spoils system of political appointments.