The Mexican-American War lasted from 1846 to 1848 and was fought between the United States and Mexico over the disputed territory of Texas. Inspired by the concept of Manifest Destiny, U.S. President James Polk sought to expand U.S. territory and authorized military action after Mexico refused to sell California and New Mexico. Key battles included Palo Alto, the first major battle of the war. The war ended with the Treaty of Guadalupe Hidalgo, where Mexico ceded California, Utah, and parts of other western states to the U.S. Casualties totaled over 1,700 Americans killed and 25,000 estimated Mexican deaths.