The 2023 Pennsylvania elections took place on November 7, 2023, to fill judicial positions, allow judicial retention votes, and fill numerous county, local and municipal offices, the most prominent being the Mayor of Philadelphia. The necessary primary elections were held on May 16, 2023. In addition, special elections for legislative vacancies could be held at various times in 2023.