When the British occupied Philadelphia during the American War of Independence the greater part of their army camped at Germantown, north of Philadelphia. After the defeat at Brandywine and the British occupation of Philadelphia, George Washington attempted a surprise counter-attack on the main British camp. Bad weather and bad coordination resulted in American defeat, heavy losses, and withdrawal to winter quarters at Valley Forge.