The general was elected as the 12th U.S. President and served from March 1849 until his death in July 1850.