The Brooklyn Democratic Party is coming under fire for backing the re-election of a judge who’s been slammed by law enforcement for letting dangerous defendants back on the street without bail.

The Kings County Dems re-nominated Judge Loren Baily-Schiffman, who was first elected to Civil Court in 1999 and re-elected in 2009.

She’s now seeking a third term on the bench and is an acting Supreme Court judge who handles criminal arraignments as well as civil cases.

But in one case last year, Baily-Schiffman released a deranged man without bail who allegedly attempted to grab a cop’s gun in Bushwick’s 83rd Precinct station house.

Defendant Kurdel Emmanuel allegedly admitted to cops afterward, “If I got hold of the gun, I could have possibly killed everybody in the room.”

Baily-Schiffman rebuffed Brooklyn District Attorney Eric Gonzalez’s office request for $250,000 bail.

She also cut loose Derrick Gadson, 45, when he was arraigned in June 2017 on charges that he walked into a Brooklyn church and threatened to kill a nun who was inside praying.

Prosecutors sought $25,000 bail but the judge released him under the mayor’s supervised release program.

And a month later, Baily-Schiffman set free two defendants who allegedly targeted a black man walking with his white girlfriend, hurling racial slurs and threatening to “lynch” the man before beating him to a bloody pulp.

Prosecutors asked for $50,000 bail each for defendants Bernard Szurant and Rudolph Evmeneko, but the judge released them.

Szurant had 20 prior arrests.

Law-and-order advocates are outraged that Baily-Schiffman is up for another term.

“I don’t see how she’s qualified to be on the ballot when she’s not qualified to be on the bench. The people who support her are nutty as she is,” said Ed Mullins, president of the Sergeants Benevolent Association.

Court Officers Union president Dennis Quirk added, “She lets everybody out. She should be removed from the bench.”

Staten Island Assemblywoman Nicole Malliotakis, the GOP candidate for mayor last year, said, “This pro-criminal judge should be removed from the bench for repeatedly letting dangerous offenders, including those who threatened to kill a cop and a nun, back on the streets against the pleas of prosecutors.

“She has shown a lack of concern for both public safety and justice for victims,” Malliotakis said.

Brooklyn Democratic Party counsel Frank Carone defended Baily-Schiffman’s endorsement, saying party committee members “overwhelmingly endorsed the incumbents who are found qualified by the [party’s own] independent judicial screening committee. Judge Baily is one of them.”

The Republican party is not fielding a candidate against her. But Baily-Schiffman could still face a primary challenger, which will be determined as early as next week when candidates file petitions with the Board of Elections.

A person answering the phone at Baily-Schiffman’s home on Sunday said, “No comment. She’s not available.”

She did not return a call to her chamber on Monday.