The American Revolutionary War was the war of 1775-1783 in which Britain's thirteen North American colonies resisted the rule of Great Britain and founded a state. To pay for the Seven Years' War Britain layered the Stamp Act and the Townshend duties on the colonies, which resisted on 'no taxation without representation'; the Boston Tea Party of 1773 brought matters to a head. In April 1775 the shots at Lexington opened the war; the Second Continental Congress raised the Continental Army under Washington as commander; and on 4 July 1776 the Declaration of Independence proclaimed the United States — argued from the Enlightenment's natural rights and the social contract. The British took New York and Philadelphia in the early campaigns; the victory at Saratoga in 1777 brought France openly into the war, with Spain and Holland following, and Britain isolated at sea and land. In 1781 the combined Franco-American armies besieged Yorktown, Cornwallis surrendered, and the fighting ended in effect; by the Treaty of Paris of 1783 Britain recognized American independence. The thirteen states framed the federal constitution in 1787 — separation of powers and federalism fixed. The Revolution was the Enlightenment's first great political experiment, spurred the French Revolution directly, and proved that Europe's colonial order in America could be overthrown.