Answer:
The United States of America and Mexico went to war from 1846 to 1848. There were several reasons why they did so, but the most important ones were the US annexation of Texas and the Americans' desire for California and other Mexican territories.