City schools have joined the coronavirus fight.

A group of Brooklyn principals have been compiling critical protective supplies from science and career technical classrooms and donating them to the city’s beleaguered health care workers.

Schools from Cypress Hills to Park Slope have been boxing up everything from masks and gloves to sanitizer and goggles and shipping them to a pair of reeling Queens facilities.

The critical supplies are being given directly to overwhelmed staffers at Flushing Hospital and Jamaica Hospital, two of the city’s busiest healthcare centers.

“The generosity is overwhelming,” said Dr. Andrew Rubin, director of community affairs at Jamaica Hospital. “Community members who know us and many who don’t are stepping forward to support our medical workers as they fight every day to save lives.”

 The Brooklyn School of Social Justice collected 15 boxes of gloves, 24 goggles and bottles of hand sanitizer for the campaign.

“This is the moment where everybody has to show up for everyone — no matter who you are,” said principal Ana Marsh. “What matters now is how we show up and support our community. We are in this together — people’s lives are at stake. We will share what we have to come together in this crisis.”

Other schools involved in the initiative include the Cypress Hills Collegiate Preparatory High School, Sunset Park High School, School for Classics High School, Millennium Brooklyn High School and Park Slope Collegiate.

From doctors and nurses to security guards and food workers, those warring against the coronavirus in overrun city hospitals have pleaded for additional supplies to keep them safe and functional.

“Without even asking for it people are stepping forward and saying ‘what more can we do.’ For those medical workers knowing these school communities are behind them means everything,” Rubin said.

Schools Chancellor Richard Carranza lauded the effort this week.

“When we support our front-line workers we support our entire city, and I could not be prouder of our schools for stepping up and giving back in such a meaningful way,” he told The Post. “I want to thank the school staff who have made this happen — if the resources our schools have can save the lives of New Yorkers, we will put them to use today.”

A DOE spokesman said that the department would replenish the supplies at participating schools once the system reopens for class.

“As New Yorkers come together in in a time of need, the link the health care workers serving our community and the schools who prepare the next generation of nurses and doctors grows even stronger,” the department said in a statement. “This is just the beginning of sharing resources that will protect those on the front-lines of this crisis and save lives.