 Lancaster was part of the 1681 Penn's Woods Charter of William Penn, and was laid out by James Hamilton in 1734.It was incorporated as a borough in 1742 and incorporated as a city in 1818.During the American Revolution, Lancaster was the capital of the United States for one day, on September 27, 1777, after the Continental Congress fled Philadelphia, which had been captured by the British.