Long before the city, the region was the centre of the Mississippian culture. Across the river at Cahokia, about 1050–1200, stood the largest city north of Mexico, with great earthen mounds; St. Louis itself was once called "Mound City" for the mounds that stood here.
French traders Pierre Laclède and Auguste Chouteau founded St. Louis in 1764 as a fur-trading post, named after King Louis IX. It passed to Spain, briefly back to France, and to the United States with the Louisiana Purchase in 1803. In 1804 Lewis and Clark set out from the area to explore the West, and the city became the "Gateway to the West", outfitting fur traders, emigrants and steamboats.
In the 1840s and 1850s German and Irish immigrants poured in, along with breweries. Missouri was a slave state: enslaved people were bought and sold on the steps of the courthouse, where in 1847–50 Dred and Harriet Scott sued for their freedom; the Supreme Court's 1857 ruling against them helped lead to the Civil War. St. Louis hosted the 1904 World's Fair and Olympic Games in Forest Park.
The Gateway Arch, completed in 1965, honours the city's role in westward expansion. The 20th century also brought decline and segregation; in 2014 protests in nearby Ferguson after the police killing of Michael Brown drew national attention to racial justice.