Zachary Taylor (November 24, 1784 – July 9, 1850) was the 12th President of the United States (1849–1850) and an American military leader. Initially uninterested in politics, Taylor ran as a Whig in the 1848 presidential election, defeating Lewis Cass. He was a planter and slaveholder based in Baton Rouge, Louisiana. Known as "Old Rough and Ready," Taylor had a 40-year military career in the United States Army, serving in the War of 1812, the Black Hawk War, and the Second Seminole War. He achieved fame leading American troops to victory in the Battle of Palo Alto and the Battle of Monterrey during the Mexican–American War.