In 1813, as part of the War of 1812, the Battle of York ended in the town's capture and plunder by United States forces. John Strachan negotiated the town's surrender. American soldiers destroyed much of the garrison and set fire to the parliament buildings during their five-day occupation. Because of the sacking of York, British troops retaliated later in the war with the burning of Washington, D.C.