At war 's end , Mexico was forced to sell the territories of Alta California and New Mexico to the United States under The Treaty of Guadalupe Hidalgo .
Under The Treaty of Guadalupe Hidalgo , Mexico was forced to sell the territories of Alta California and New Mexico to the United States .