The origins and cause of the Mexican-American War are very complex, but in general it was started only because the US under President Polk wanted more land.
President Polk’s desire for the US to control ports in California
Explanation:
Polk attempted to buy territory (including California) from Mexico. He was refused, so he ordered US military forces into a disputed area hoping to provoke a war.