OFD Rescue team working hard to extricate stuck worker #confinedspacerescue pic.twitter.com/PGVGz5lRvx — Oakland Firefighters (@OaklandFireLive) January 13, 2016

7.5 hrs later. @Cityofoakland till excavating trapped worker. Pit collapsed while replacing sewage line. pic.twitter.com/RQZguJyvZu — alan wang (@AlanWangABC7) January 13, 2016

Colleagues of trapped plumber watch rescue at 21st Ave. & E 23rd. 13 ft pit collapsed @CityofOakland pic.twitter.com/D9W5e3WaJH — alan wang (@AlanWangABC7) January 13, 2016

Worker trapped in 13 ft hole that collapsed while attaching sewer lateral to main line in @CityofOakland. pic.twitter.com/EreEnA9J1b — alan wang (@AlanWangABC7) January 13, 2016

Massive rescue operation of man trapped in an Oakland sewer! pic.twitter.com/0GLTzyB9Rm — carolyn tyler (@ctylerabc7) January 12, 2016

OAKLAND, Calif. -- A man trapped in a sewer is finally free after he was stuck in the 2x3-foot space for more than 13 hours.This happened in East Oakland on East 23rd Street at 12:30 Tuesday afternoon as he was working on a sewer line.The independent contractor was trying to replace and attach the sewer service line from a home to a main sewage pipe under the street when the trench collapsed on him.According to a fire official, there was not sufficient cribbing -- plywood around the hole -- so dirt started caving in, burying him up to his chest. After hours of the rescue underway, the level of dirt trapping the man was down to his knees.He's now at Highland Hospital after being pulled to safety at 2:07 a.m. and is OK.The tricky part of the rescue operation was the soil. It had the consistency of sand, so it was tough to hold back.His foot was stuck in a squishy clay, creating a suction force they had to fight against.Medical crews kept an eye on his vital signs during the long ordeal.Friends identified the worker as 41-year-old Hayward resident Rogelio Esparza.The foreman on the job said Wednesday morning that he is so grateful that crews got him out safely.He's now being checked out at the hospital.