Andrew Jackson was elected in 1832 with his running mate Martin Van Buren in a landslide against John Quincy Adams, and served until 1845.