 The revolutionary government then moved still farther away to York, Pennsylvania.Lancaster was capital of Pennsylvania from 1799 to 1812, after which the capital was moved to Harrisburg.In 1851, the current Lancaster County Prison was built in the city, styled after Lancaster Castle in England.