Zachary Taylor was the 12th president of the United States, serving from March 1849 until his death in July 1850. He was a Whig party member and career military officer, having served 40 years in the U.S. Army rising to the rank of Major General prior to his presidency.