After the American Revolutionary War, the Declaration of Independence was drafted. This established the colonies as self-governing and independent from the British Crown. The declaration was formally adopted in Philadelphia on July 4. The document was written largely by Jefferson, and it reveals the main purpose and duties of government in the new country.