Given the task definition and input, reply with output. In this task, you're given a context passage. Your job is to generate relevant questions that can be answered by directly referring to the passage.

On this day in 1846, Congress voted overwhelmingly to approve a declaration of war against Mexico sought by President James Polk. By the war's end in 1848, Mexico had lost nearly half its territory.
What does Taylor need to do before this?