The dispute centered on the southern boundary of Texas after its independence (1836) and U.S. annexation (1845).
President Polk sent troops into the disputed territory (1846); Mexican forces attacked, triggering the Mexican–American War (1846–1848).
The Treaty of Guadalupe Hidalgo (1848) set the border at the Rio Grande. Mexico ceded the Mexican Cession (California, Nevada, Utah, most of Arizona, parts of Colorado, New Mexico, Wyoming) for $15 million.