The Mexican Cession (Spanish: Cesión mexicana) is the region in the modern-day western United States that Mexico previously controlled, then ceded to the United States in the Treaty of Guadalupe Hidalgo in 1848 after the Mexican–American War. This region had not been part of the areas east of the Rio Grande that had been claimed by the Republic of Texas, though the Texas annexation resolution two years earlier had not specified the southern and western boundary of the new state of Texas. At roughly 529,000 square miles (1,370,000 km2), not including any Texas lands, the Mexican Cession was the third-largest acquisition of territory in U.S. history, surpassed only by the 827,000-square-mile (2,140,000 km2) Louisiana Purchase and the 586,000-square-mile (1,520,000 km2) Alaska Purchase.
Most of the area had been the Mexican territory of Alta California, while a southeastern strip on the Rio Grande had been part of Santa Fe de Nuevo México, most of whose area and population were east of the Rio Grande on land that had been claimed by the Republic of Texas since 1835, but never controlled or even approached aside from the Texan Santa Fe Expedition. Mexico controlled the territory later known as the Mexican Cession, with considerable local autonomy punctuated by several revolts and few troops sent from central Mexico, in the period from 1821–1822 after independence from Spain up through 1846 when U.S. military forces seized control of California and New Mexico on the outbreak of the Mexican–American War. The northern boundary of the 42nd parallel north was set by the Adams–Onís Treaty signed by the United States and Spain in 1821 and ratified by Mexico in 1831 in the Treaty of Limits. The eastern boundary of the Mexican Cession was the Texas claim at the Rio Grande and extending north from the headwaters of the Rio Grande, not corresponding to Mexican territorial boundaries. The southern boundary was set by the Treaty of Guadalupe Hidalgo, which followed the Mexican boundaries between Alta California (to the north) and Baja California and Sonora (to the south).
Until the American Civil War, the question of whether states formed out of Mexican Cession lands would or would not permit slavery was a major American political issue.