In 1846, you S President James Polk declared war on Mexico over possession of California, New Mexico, and Texas. After successfully defeating the Mexican Army, the Treaty of Guadalupe ended the war and gave the U.S. Undisputed control of Texas, and the United States the present-day states of California, Nevada, Utah, and parts of Colorado, Arizona, New Mexico, and Wyoming.