Answer:
That when there were American troops near their territory the Mexican troops shot at them since Mexico claimed that the Nueces River wascthe Northeastern border(US) while the US said that the Rio Grande was their border so war broke out