The Declaration of Independence was primarily written by Thomas Jefferson. He was appointed by the Committee of Five, which included John Adams, Benjamin Franklin, Robert R. Livingston, and Roger Sherman, to draft the document. Jefferson wrote most of the Declaration in June 1776, drawing on earlier documents and ideas, while the other committee members and the Continental Congress made some edits before its final adoption on July 4, 1776.