York, PA is a city in York County, southeastern Pennsylvania, United States. It is located on Codorus Creek, about 28 miles southeast of Harrisburg. York serves as the county seat of York County and is in the South Central region of Pennsylvania. It lies approximately 50 miles north of Baltimore and 25 miles south of Harrisburg. The city is historically significant as it temporarily hosted the Continental Congress during 1777-1778, where the Articles of Confederation were drafted. York is part of a metropolitan area that includes surrounding boroughs and townships and has a population of around 44,800 residents as of 2020. The coordinates of York, PA are approximately 39.9623°N latitude and 76.7277°W longitude.