What was the major cause of the Mexican American War?

The US annexation of Texas.