The Philadelphia campaign (1777–1778) was a British military campaign during the American Revolutionary War designed to gain control of Philadelphia, the Revolutionary-era capital where the Second Continental Congress convened and formed the Continental Army and appointed George Washington as its commander in 1775, and authored and unanimously adopted the Declaration of Independence the following year, on July 4, 1776, which formalized and escalated the war.