The Mexican War, also known as the Mexican-American War, was a conflict between the United States and Mexico from 1846 to 1848, primarily over territorial disputes following the U.S. annexation of Texas. This war resulted in significant territorial gains for the U.S., including present-day California, Arizona, New Mexico, and parts of Colorado, Nevada, and Utah, fundamentally shaping the political landscape and development of Texas government.