Three construction workers were rescued from the yard behind a three-story residential building in Williamsburg on Monday morning, after the soil they were excavating caved in, leaving them trapped.

The fire department responded to 146 Wilson Street near the corner of Bedford Avenue at 9:16 a.m., according to a spokesman for the department.

The call was in regards to a "partial collapse in the basement." Two individuals were rescued from the soil and transported to Woodhull Medical Center with minor injuries. A third victim was transported to Bellevue Hospital in stable condition. The FDNY did not have any details on the injuries sustained.

NBC reports that the construction workers were digging an extension for the three-story, multi-family row house when the ground gave way. According to Yeshiva World News, the workers were trapped from the waist down.

There are no construction permits filed for the address on the Department of Buildings website. However, a complaint filed this morning calls for an "inspection due to excavation collapse."

The FDNY confirmed that both buildings adjacent to 146 Wilson have been evacuated as a precaution. A spokesman for the Department of Buildings said that the department is on the scene conducting a structural stability inspection.

UPDATE 4:45: The Department of Buildings issued a statement on Monday afternoon:

This morning’s cave-in is a stark reminder of the dangers of working without permits or proper safeguards. The Department is investigating this illegal construction project and we will do everything in our power to identify and hold accountable those responsible for endangering public safety.

The DOB also confirmed that the collapse was caused by excavation in the basement of 146 Wilson, and that the cave-in compromised the stability of adjacent walls at 144 Wilson, a synagog, and 148 Wilson, a three-unit residential building. HPD has hired contractors to secure all three buildings, but a vacate order will remain in effect until work is complete.