Zachary Taylor (November 24, 1784 – July 9, 1850) was the 12th president of the United States, serving from March 1849 until his death in July 1850. As a result, he won election to the White House despite his vague political beliefs. His top priority as president was preserving the Union, but he died sixteen months into his term, before making any progress on the status of slavery, which had been inflaming tensions in Congress. In the Battle of Credit Island, Taylor defeated Indian forces, but retreated after the Indians were joined by their British allies. That October he supervised the construction of Fort Johnson near present-day Warsaw, Illinois, the last toehold of the U.S. Army in the upper Mississippi River Valley. Upon Howard's death a few weeks later, Taylor was ordered to abandon the fort and retreat to St. Louis. Reduced to the rank of captain when the war ended in 1815, he resigned from the army.