The war officially ended February 2, 1848, signing in Mexico of the Treaty of Guadalupe Hidalgo. The treaty added an additional 525,000 square miles to United States territory, including the land that makes up all or parts of present-day Arizona, California, Colorado, Nevada, New Mexico, Utah and Wyoming.