(The Mexican–American War had just been fought.