The scary incident happened on Highway 225 near Scarborough in Pasadena around 1:45 a.m.
Authorities say the driver, Fernando "Nandito" Dominguez IV, fell asleep behind the wheel of his vehicle and drove into a metal pipe with electrical wires.
The vehicle managed to bend the pipe, which landed on the hood of Dominguez's vehicle.
Video from the incident shows firefighters carefully cutting off the roof of Dominguez's Lincoln, which took about four hours.
Dominguez was transported to Memorial Hermann Hospital in stable condition. Authorities say he was conscious and laughing while he was being rescued.
Dominguez is recovering from his injuries, but he will need some financial help, especially since he was driving a rental car. He has a GoFundMe account as a way to accept donations.
Follow Christine Dobbyn on Facebook and Twitter.