 Its county seat is York.The county was created on August 19, 1749, from part of Lancaster County and named either after the Duke of York, an early patron of the Penn family, or for the city and county of York in England.York County comprises the York-Hanover, Pennsylvania Metropolitan Statistical Area, which is also included in the Harrisburg-York-Lebanon, Pennsylvania Combined Statistical Area.