PHILADELPHIA — A longtime civil rights attorney who has sued the police department scores of times, opposes the death penalty and promised to help hold bad officers accountable was elected Tuesday as Philadelphia’s next district attorney.

Larry Krasner, 56, ran a campaign focused on combating inequities in the criminal justice system.

He will succeed Democrat Seth Williams, who resigned in June after pleading guilty to taking a bribe in exchange for legal favors and was sentenced last month to five years in prison.

Krasner beat Republican Beth Grossman, who had been a lifelong Democrat until switching parties a few years ago because of what she said was the Democratic Party’s corrupt stranglehold on the city.

A crowd of about 100 people erupted into a chant of “Larry! Larry! Larry!” as Krasner entered election watch party just after the results were called.

“This is a mandate for a movement that is loudly telling a government what it wants, and what it wants is transformational change in criminal justice and in the district attorney’s office,” he said, flanked onstage by his children, mother-in-law and wife.

Krasner also vowed to stop President Donald Trump’s immigration agenda. The city has been standing its ground in the Trump administration’s promised crackdown on so-called “sanctuary cities” like Philadelphia, despite possible financial risks.

He thanked Grossman for maintaining a standard of civility “unfamiliar in Trump-world.”

Krasner has said he will encourage a number of reforms, including changes in bail practices that currently result in many poor people being jailed while awaiting trial and alternatives to incarceration for lower-level crimes. His bid was opposed by the local police union, which endorsed Grossman.

“My view of justice means you don’t just look at when incarceration is appropriate but look at when it’s not appropriate and take into account the tremendous costs it imposes,” he said during the final days of the campaign.

His campaign got a $1.5 million boost ahead of the May primary from billionaire George Soros.

John McNesby, president of the city Fraternal Order of Police chapter, called Krasner “anti-law enforcement” after Krasner’s supporters bashed the union during chants at the candidate’s primary victory party. But Krasner predicts he’ll have a productive relationship with the department. He was endorsed by the local chapter of The National Black Police Association.

He said he will be a help to the police commissioner.

“We are in a city where police commissioners for a long time have needed a district attorney who would be supportive when they try to fire and try to discipline and try to hold their officers accountable rather than always siding with the FOP because it was politically convenient,” he said.

During 30 years as a civil rights attorney, Krasner has defended a host of protesters and activists, from Black Lives Matter demonstrators to the hundreds of people arrested during the Republican National Convention in 2000.

He said none of his clients has been sent to death row in 25 years of defending capital cases. Pennsylvania under Democratic Gov. Tom Wolf has a moratorium on executions, but prosecutors can still pursue death sentences.

During the campaign, Krasner heaped scorn on Williams’ predecessor Lynne Abraham, Philadelphia’s best-known law and order district attorney who was nicknamed “America’s deadliest DA” for her aggressive use of the death penalty.

Though he has no experience as a prosecutor, he said his experience as a defense attorney helped prepare him to be the city’s top law enforcement officer.

“When you are preparing cases for the defense, you are also simultaneously preparing in your mind the prosecutor’s case because that is the only way you win,” he said.

He will take office in January. As of Nov. 6, the city had recorded 272 homicides, a 15 percent increase over same period last year, putting the city on track for its deadliest year since 2012.

Krasner has said he will target the 6 percent of criminals who commit most of the city’s serious crimes, in part by spending more on proactive policing.

“We have to recognize that we can’t incarcerate our way out of this. It hasn’t worked for decades, and it’s not going to work now,” he said.


Associated Press writer Anthony Izaguirre contributed to this report.