Answer: The Mexican-American war was fought from April of 1846 to February of 1848 over a dispute regarding the Annexation of Texas by the United States from Mexico. The dispute was over whether Texas ended at the Nueces River (the Mexican claim) or the Rio Grande (the U.S. claim).
I hope this helped!