Mexico and the us went to war because when the us annexed the state of Texas in 1845 Mexico and the US fought over where the border of Texas ended, the United States and Mexico ended up with the Rio grande and the issue was resolved even though they were basicly causing a massacre over a very large state that now has a important role