In his bid for reelection, opposition from Federalists and accusations of despotism from Republicans led to Adams's loss to his former friend Thomas Jefferson, and he retired to Massachusetts. He eventually resumed his friendship with Jefferson by initiating a correspondence that lasted fourteen years. He and his wife generated a family of politicians, diplomats, and historians now referred to as the Adams political family, which includes their son John Quincy Adams, the sixth president of the United States. John Adams died on July 4, 1826 – the fiftieth anniversary of the adoption of the Declaration of Independence – hours after Jefferson's death. Surveys of historians and scholars have favorably ranked his administration.