[357] Tyler signed a treaty of annexation in April 1844, but it became associated with the expansion of slavery and was not ratified. Henry Clay, the Whig nominee for the 1844 presidential election, and Van Buren, Jackson's preferred candidate for the Democratic Party, both opposed annexation. Disappointed by Van Buren, Jackson convinced Polk, who was to be Van Buren's running mate, to run as the Democratic Party's presidential nominee instead. Polk defeated Van Buren for the nomination, and Jackson convinced Tyler not to run as an independent by bringing him back into the Democratic Party. Polk won the election, the Senate passed a bill to annex Texas, and it was signed on March 1, 1845.[358]
Jackson died of dropsy, tuberculosis and heart failure[359] at 78 years of age on June 8, 1845. He was surrounded by family and friends at his deathbed, and his last words were, "Oh, do not cry. Be good children and we will all meet in Heaven."[360] He was buried in the same tomb as his wife Rachel.[361]

Personal life
Family
Jackson and Rachel had no children together but adopted Andrew Jackson Jr., the son of Rachel's deceased brother Severn Donelson. 