Mayor Bill de Blasio holds a press conference outside the Barclays Center in August in an attempt to drum up enthusiasm for the location as a potential DNC venue.

Continuing corruption scandals in New York sank Mayor Bill de Blasio’s hopes of landing the 2016 Democratic presidential convention, according to party sources.

The Democratic National Committee announced Thursday that it had selected Philadelphia over the Big Apple for the party’s quadrennial convention in July 2016.

Flaunting the Barclays Center as a hip spot for the DNC wasn’t enough to convince committee heads to let NYC host the convention.Stefan Jeremiah

The decision was a blow to de Blasio, who pulled out all the stops to try to land the nominating convention — from dangling the Barclays Center in downtown Brooklyn as a hip venue to naming a high-powered host committee that pledged to raise millions to cover the bill.

One national Democratic Party source said the mayor’s efforts were overshadowed by US Attorney Preet Bharara’s intensive crackdown on corrupt elected officials, including Democrats such as former Assembly Speaker Sheldon Silver.

“You have all these corruption cases,” said the source. “Do we want trials breaking next year during the convention? How many more political indictments are going to be coming up in New York?

“Do we want Shelly Silver’s trial coming up around the time of the convention? Corruption was a real issue. God knows who will get indicted next.”

When he announced Silver’s arrest last month, Bharara warned “Stay tuned” because more cases were in the federal pipeline.

The source said logistical issues also came up, since delegates would be staying in midtown Manhattan and would have had to trek to Brooklyn to nominate the next Democratic candidate for president.

The DNC decision is a coup for former Gov. Ed Rendell, a former DNC chair who had pushed the party to convene in the City of Brotherly Love.

Rendell was Philadelphia’s mayor from 1992 to 2000.

The Republican Party previously said it would hold its convention in Cleveland.

The mayor issued a statement, saying:

“New York City represents the future of America. We’re a city that’s working to lift up and unite every resident and ensure that all 8.4 million New Yorkers have the opportunity to succeed — not just the fortunate few. That core principle is what makes our City and our nation so great, and is why we fought so hard to bring the 2016 Democratic National Convention to the five boroughs. Brooklyn is America’s greatest urban success story, which would have made it a great backdrop to nominate the next President of the United States. I’d like to thank the thousands of New Yorkers who lent their time, energy and resources to support our effort.”