Harrisburg, Pennsylvania
AP
—
Challenger Corey O’Connor ousted Pittsburgh Mayor Ed Gainey in Tuesday’s Democratic primary election, beating an incumbent in a race that hinged on how Gainey was handling city finances, affordable housing and public safety.
O’Connor is all but assured of winning November’s general election against a low-profile Republican nominee in a city that hasn’t elected a Republican mayor in nearly a century.
O’Connor is the Allegheny County controller and the son of a former Pittsburgh mayor who had won the local party’s endorsement over Gainey.
Gainey – the city’s first Black mayor, who grew up in subsidized housing – beat his predecessor in 2021’s primary campaign and had allied himself with the Democratic Party’s progressive wing.
He had portrayed himself as the mayor who sides with regular people and as a “mayor that’s going to fight for you” when the Trump administration threatens the city.
O’Connor criticized Gainey’s management of the city, saying Gainey was reckless with city finances, fell badly short in expanding affordable housing and lacked vision to bring businesses back to downtown after the Covid-19 pandemic and the devastating collapse of the hometown steel industry.
He also said people didn’t feel safe in Pittsburgh and that city vehicles – including snow plows and ambulances – were breaking down at critical times.
Gainey touted the city’s strong economy under his watch and contended that he had held the line against tax increases, been saddled with the mistakes of prior administrations and had overseen dropping crime rates in the city.
O’Connor benefited from support from builders and developers amid friction over Gainey’s affordable housing plan, and O’Connor’s campaign and allied groups outspent Gainey’s side, which had support from the liberal Working Families Party and Service Employees International Union.
Still, unions were divided in the race, and affordable housing groups had criticized Gainey’s efforts as badly inadequate. O’Connor, meanwhile, characterized the city under Gainey as headed for a “financial crisis” that threatened quality of life and public safety, a crisis that O’Connor confidently said he could fix.
Gainey, he said, was leading the city “down a path of managing our decline.”
“That financial crisis is going to impact each and every one of us, each and every day,” O’Connor said during a televised May 8 debate. “It’s going to stop our ability to fill in your potholes. It’s going to stop our ability to buy new ambulances and equipment for public safety to keep you safe.”

Also Tuesday, voters chose incumbent Larry Krasner in the Democratic primary for Philadelphia district attorney.
Krasner defeated his primary opponent, Pat Dugan, a US Army veteran who served in Iraq and Afghanistan and was the head administrative judge of the Philadelphia Municipal Court before he resigned to run.
Krasner is running again after withstanding an impeachment attempt by Republican state lawmakers and years of being a campaign trail punching bag for President Donald Trump.
He has the benefit of crime rates falling in big US cities, including Philadelphia, after they rose sharply during the Covid-19 pandemic.
Dugan had aimed to make the race about Krasner’s crime-fighting policies – he called Krasner “Let ’em Go Larry” – and accused the incumbent of staffing the district attorney’s office with ill-prepared and inexperienced lawyers.
Krasner originally ran in 2017 on a progressive platform that included holding police accountable and opposing the death penalty, cash bail, prosecuting minor nonviolent offenses and a culture of mass incarceration.
Like some big-city Democrats, Krasner has turned toward pro-public safety messaging, maintaining that he is serious about pursuing violent crime and touting new technologies and strategies that his office is using to solve or prevent crime.
Krasner has repeatedly invoked Trump and suggested that he is the best candidate to stand up to the president. In a TV ad, he cast himself as the foil to “Trump and his billionaire buddies, the shooting groups and gun lobby, the old system that denied people justice for too long. They can come for Philly, but I’m not backing down.”
Dugan had invoked Trump, too, saying in a TV ad that Philadelphia faces the threats of crime, injustice and a “president bent on destruction.” He also accused Krasner of failing to deliver “real reform or make us safe. Now he wants us to believe he can take on Trump? Get real.”
This story has been updated with additional developments.