The war between the United States and Mexico (April 1846–February 1848) stemming from the United States’ annexation of Texas in 1845 and from a dispute over whether Texas ended at the Nueces River (Mexican claim) or the Rio Grande (U.S. claim).