Thomas Jefferson wrote the Declaration of Independence and became the first Secretary of State in 1790. As the third President, from 1801, he bought the Louisiana Territory from France in 1803, which doubled the size of the United States. He also wrote Virginia's bill for establishing religious freedom, adopted in 1786, and founded the University of Virginia, chartered in 1819.