Williamsburg is ground zero in the growing scourge of stalled construction that has left the neighborhood littered with 18 vacant lots and rusting steel building frames — more than in all of The Bronx, The Post has learned.

Block after block in the trendy Brooklyn community and a few adjacent streets in Greenpoint have been declared stalled construction sites by the city.

A team of building inspectors found 143 stalled sites around the city. But the cluster of lots in Williamsburg, where development was white-hot just two years ago, is the biggest.

By contrast, The Bronx and Queens each had just 14 stalled construction sites, and Staten Island had 13, city records show.

. . .

Philip DePaolo, who moved from The Bronx to Williamsburg in 1979, said the neighborhood looks like the arson-scarred streets he left behind.

“It looks like I never left,” said DePaolo, comparing his old neighborhood to Williamsburg today.

“The problem we’re having now is that we’re starting to get squatters in these buildings and lots,” said DePaolo. “Blight draws crime, and if you have blocks and blocks of vacant lots with no people, that creates a problem.”

DePaolo pointed to broken construction fencing surrounding some of the sites and piles of blankets and cardboard shacks left behind by homeless squatters who spend nights there.

Officials say they’re working on the problem as a growing number of developers struggle with financing in a slumping housing market.