Answer: The 1824 election was the first election in American history in the popular vote mattered, as 18 states had chosen presidential electors by popular vote (six states still left the choice up to their state legislatures).
Step-by-step explanation:
John Quincy Adams defeated Andrew Jackson in 1824