The War with Mexico played a key role in the growth of the US. It officially started on 13 May 1846, when Congress overwhelmingly voted in favor of President Polk’s request to declare war on Mexico in a dispute over Texas.
Under the threat of war, the US had refrained from annexing Texas after the latter won independence from Mexico in 1836. But in 1844, President John Tyler restarted negotiations with the Republic of Texas, culminating with a Treaty of Annexation. The treaty was defeated by a wide margin in the Senate because it would upset the slave state/free state balance between North & South and risked war with Mexico, which had broken off relations with the US. But shortly before leaving office and with the support of President-elect Polk, Tyler managed to get the joint resolution passed on March 1, 1845. Texas was admitted to the union on December 29. While Mexico didn’t declare war, relations between the two nations remained tense over border disputes, and in July 1845, President Polk ordered troops into disputed lands that lay between the Neuces & Rio Grande rivers. In November, Polk sent the diplomat John Slidell to Mexico to seek boundary adjustments in return for the US government’s settlement of the claims of US citizens against Mexico and also to make an offer to purchase California & New Mexico. After the mission failed, the US army under Gen. Zachary Taylor advanced to the mouth of the Rio Grande, the river that the state of Texas claimed as its southern boundary.
Mexico, claiming that the boundary was the Nueces River to the northeast of the Rio Grande, considered the advance of Taylor’s army an act of aggression and in April 1846 sent troops across the Rio Grande. Polk, in turn, declared the Mexican advance to be an invasion of US soil, and on 11 May, asked Congress to declare war, which it did two days later.
After nearly two years of fighting, peace was established by the Treaty of Guadalupe Hidalgo, signed on 2 February 1848. The Rio Grande was made the southern boundary of Texas, and California & New Mexico were ceded to the US. In return, the US paid Mexico the sum of $15 million and agreed to settle all claims of US citizens against Mexico.