THis agreement forced Mexico to give up territory.