Sign up for our special edition newsletter to get a daily update on the coronavirus pandemic.

Bowing to mounting pressure, Mayor Bill de Blasio struck a deal with Council Speaker Corey Johnson on Monday to close or modify miles of city streets to make more room for pedestrians and cyclists to social distance — especially around the Big Apple’s crowded parks.

The accord ends a weeks-long brawl between Johnson and de Blasio over using congestion-free streets to make more room for New Yorkers, which erupted after a similar back-and-forth between City Hall and Gov. Andrew Cuomo led to a tiny and much-criticized pilot program that was quickly axed by the mayor.

“We will focus first on streets in and around our parks,” de Blasio said during his daily press briefing at City Hall. “That’s an obvious opportunity to open more space.”

Under the deal, the city will close or modify 40 miles of street over the next month to expand space for pedestrians and bikes. The goal, de Blasio added, is to expand the network to 100 miles before the end of the pandemic.

“The Council is thrilled our calls for open streets have been answered and looks forward to working with the administration to give New Yorkers the space they need to socially distance properly,” Johnson (D-Manhattan) said in a statement.

“As the weather gets nicer and this unprecedented crisis stretches on longer, we need to do everything in our power to keep our neighbors safe and healthy.”

Monday’s announcement comes more than a month after Cuomo — frustrated by scenes of overcrowded parks and sidewalks — gave City Hall 24 hours to come up with a plan to convert streets as a way to give New Yorkers more space to social distance.

“I could make those decisions in NYC,” the governor threatened on March 22. “But I think they’re in a better position to do it.”

The de Blasio administration responded a day after deadline on March 24 with a proposal to close several blocks of up to two streets in each borough.

City Hall ultimately shut down just a few blocks on one street per borough — except on Staten Island, where there were no closures — and said they needed more than 80 cops to police the closure of fewer than three dozen blocks.

The limited scale of the pilot program enraged biking and pedestrian activists, who were further angered when he pulled the plug on the program altogether just a couple of weeks later.

Johnson and Councilwoman Carlina Rivera (D-Manhattan) responded by introducing legislation that would have required the city to convert upwards of 75 miles based on proposals being rolled out in Oakland, Calif; and Minneapolis; Mn. — plans that de Blasio dismissed.

City Hall even dispatched Transportation Commissioner Polly Trottenberg and a top NYPD traffic enforcement official to talk down the Johnson and Rivera bill, as recently as Friday at a Council hearing.

“I have not heard a plan from you at all,” Johnson retorted at the time. “We have been talking about this for weeks. I thought you’d come in and say ‘we’ve identified X number of streets and X number of miles where we could do this.’”