The Mexican-American War took place 175 years ago. So America added to itself a huge territory that had previously belonged to Mexico.
The balance of power was in favor of Mexico. Their army consisted of 32 thousand soldiers, compared to 9 thousand for the United States. America saved on military spending.
But the quantity problem is completely compensated by the quality. The Mexican army was scattered over the provinces and there was no unified system of exercises and training.
From the early days, the US Army won victory after victory and successfully moved deeper into the country. The Americans decided to conquer and annex all of Mexico. But at that moment the opposition rose to power in Mexico and began peace negotiations with the United States. Mexico managed to end the war, but on US terms.
Mexico lost 55% of its territories. California, New Mexico, Arizona, Nevada and Utah were transferred to the United States.