Question: last president that was not a democrat or republican
Answer: Dallas 12 March 4 , 1849 -- July 9 , 1850 ( Died in office ) Zachary Taylor 1784 -- 1850 ( Lived : 65 years ) Major General of the 1st Infantry Regiment United States Army ( 1846 -- 1849 ) ( No prior elected office ) Whig ( 1848 ) 16 ( 1849 ) ( 1850 ) Millard Fillmore ( Succeeded to presidency ) 13 July 9 , 1850 -- March 4 , 1853 Millard Fillmore 1800 -- 1874 ( Lived : 74 years ) 12th Vice President of the United States Whig Office vacant 14 March 4 , 1853 -- March 4 , 1857 Franklin Pierce 1804 -- 1869 ( Lived : 64 years ) Brigadier General of the 9th Infantry United States Army ( 1847 -- 1848 ) Democratic ( 1852 ) 17 ( 1853 ) William R.