How did the Mexican-American War end?

The Mexican-American War (not to be confused with the Spanish American War) was fought from 1846 to 1848 and ended with the capture of Mexico City. The war officially ended on February 2nd, 1848 with the signing of the Treaty of Guadalupe Hidalgo in Mexico City by the collapsed Mexican Government. The signers for Mexico were Don Bernardo Couto, Don Miguel Atristain, and Don Luis Gonzaga Cuevas while the American negotiators were General Winfield Scott (Commander in Chief of American Forces) and Nicholas Trist (Chief Clerk of the State Department).

Within the treaty, it stated that Mexico would cede upper California and New Mexico in addition to parts of present day Arizona, Colorado, Utah, and Nevada under Article V.

In addition, the U.S. agreed to pay $15million for the land as well as the debts made by the Mexican Government to U.S. citizens.