He declared war on Mexico in 1846 and the U.S. Army fought all the way to Mexico City before the Mexican government agreed to a peace treaty that gave the United States California and the area then called New Mexico including Arizona and parts of Colorado and Nevada for $15 million.