He led troops during the Creek War of 1813–1814, winning the Battle of Horseshoe Bend. The subsequent Treaty of Fort Jackson required the Creek to surrender vast tracts of present-day Alabama and Georgia. In the concurrent war against the British, Jackson's victory at the Battle of New Orleans in 1815 made him a national hero. He later commanded U.S. forces in the First Seminole War, which led to the annexation of Florida from Spain. Jackson briefly served as Florida's first territorial governor before returning to the Senate. He ran for president in 1824, winning a plurality of the popular and electoral vote, but no candidate won an electoral majority. In a contingent election, the House of Representatives elected John Quincy Adams with Henry Clay's support. Jackson's supporters alleged that there was a "corrupt bargain" between Adams and Clay and began creating their own political organization that would eventually become the Democratic Party.
Jackson ran again in 1828, defeating Adams in a landslide. In 1830, he signed the Indian Removal Act. This act, which has been described as ethnic cleansing, displaced tens of thousands of Native Americans from their ancestral homelands east of the Mississippi and resulted in thousands of deaths. 