Harrisburg is the capital city of the U.S. commonwealth of Pennsylvania and the seat of Dauphin County. With a population of 50,099 as of 2020, Harrisburg is the ninth-most populous city in Pennsylvania.