A judge temporarily blocked the controversial closure of a Brooklyn school Thursday after backers argued that the Department of Education bypassed an oversight board in their rush to shutter it.

Lawyers fighting the demise of PS 25 in Bed-Stuy said the DOE illegally pushed the shuttering without a formal vote of the local Community Education Council.

Advocates for Justice – who have fought the DOE’s dictate at every turn – highlight that the school ranks high on the department’s own “impact” metric.

PS 25 is the Bed-Stuy neighborhood’s only zoned option and the DOE failed to its students’ decent alternatives, the group argued.

“I”m delighted that the court reached this interim decision and considered the best interest of parents and children in not closing PS 25 – one of the best schools in Brooklyn,” said Laura Barbieri, the group’s attorney.

Barbieri said she hoped the lifeline would extend at least through next school year.

Judge Katherine Levine issued her ruling because there were too many unresolved legal issues swirling around the closure and concluded that “the status quo needed to be maintained,” Barbieri said.

The DOE marked the K-5 school for doom because of low enrollment rates.

But boosters countered that the DOE failed to amplify the school’s attributes and that better awareness would bolster enrollment.

In a letter to schools Chancellor Richard Carranza that appeared in the Washington Post on Thursday, advocate Leonie Haimson called for the school to be saved.

“Instead of closing PS 25, the DOE should celebrate, emulate and expand it – and give more NYC children a chance to succeed,” Haimson said.

The city can appeal the decision.