The 2024 Pennsylvania Attorney General election was held on November 5, 2024, to elect the attorney general of the U.S. state of Pennsylvania. Republican York County district attorney Dave Sunday defeated former auditor general Eugene DePasquale in the general election, becoming the first Republican to be elected state attorney general since 2008. This was the only attorney general seat to change parties in 2024.