After being president, Jefferson retired to Monticello. He sold his book collection to be the base of the Library of Congress. At 76 years old, he played a major role in the founding of Virginia University. He died of unknown causes on July 4, 1826, just hours before his friend, John Adams.