Van Buren lost the next presidential election in 1840 to William Henry Harrison. In 1848, he ran again to be president as a part of the Free Soil Party, but he did not win. Van Buren died on July 24, 1862, of heart failure after suffering from an asthma attack, on his Lindenwald estate.