Dallastown is a borough in York County, Pennsylvania, United States. The population was 4,195 at the 2020 census. It is part of the York–Hanover metropolitan area. Settled in 1736, the town was renamed after George M. Dallas of Philadelphia during the presidential campaign of 1844. Dallastown was incorporated as a borough in April 1866.