Zachary Taylor was an American military officer and politician who was the 12th president of the United States, serving from 1849 until his death in 1850. Taylor was a career officer in the United States Army, rising to the rank of major general and becoming a national hero for his victories in the Mexican–American War. As a result, he won election to the White House despite his vague political beliefs. His top priority as president was to preserve the Union. He died 16 months into his term from a stomach disease. Taylor had the third-shortest presidential term in U.S. history and was the third president whose death has been traced to poor sanitation in Washington, D.C.
Taylor was born into a prominent family of plantation owners who moved westward from Virginia to Louisville, Kentucky, in his youth. He was the last president born before the adoption of the Constitution. He was commissioned as an officer in the U.S. Army in 1808 and made a name for himself as a captain in the War of 1812. He climbed the ranks of the military, establishing military forts along the Mississippi River and entering the Black Hawk War as a colonel in 1832.