Dallastown is a borough in York County, Pennsylvania, United States. The population was 4,049 at the 2010 census.