The us and Mexico were fighting over where Texas ended either rio grande (The US claims) or nueces river (Mexico claimed )because America owned land but Mexico thought they owned a smaller portion, America wins and gains a ton of Mexican land including California and Texas and etc