City Hall will no longer punish homeowners for failing to fix sidewalks buckled by city-owned trees, ending a years-long controversy that marred an effort to green New York’s concrete jungle.

“This was never the way things should have been. This burden never should have been put on homeowners to begin with,” said de Blasio. “If a tree causes damage to a sidewalk, the city of New York will take responsibility.”

Under the plan, the city will stop hitting one-, two- and three-family homes with liens for sidewalk damage caused by the trees, which are maintained by the Parks Department. Liens that were issued will be canceled, he added.

Additionally, Hizzoner said the city will review the 50,000 existing violations for sidewalk damage to see if they were caused by city-owned trees – and cancel them, if so.

Assembly Speaker Carl Heastie (D-The Bronx) pushed for the change for years.

“I think this is absolutely a big day and a big win,” he said at the Tuesday press conference.

New York City launched the aggressive program to plant more than a million trees during former Mayor Michael Bloomberg’s administration.

The leaves help to clean the air and beautify the city. But the growing roots can play havoc on sidewalks, which homeowners are usually responsible for maintaining – and who were fined for the damage.

The announcement follows a June report from the Comptroller that found it takes the Parks Department a year on average to repair sidewalk damage caused by city-owned trees – and that some homeowners were stuck waiting a decade for fixes.