STOCKBRIDGE — A Randolph man was hospitalized with a shoulder injury over the weekend after the car he was driving drifted off a rain-slicked stretch of Route 107, plowed through a guardrail, and became airborne, before slamming roof-first into a tree.

State police said the bizarre accident occurred shortly after 11 p.m. on Saturday when 18-year-old Noah Markwood fell asleep at the wheel of his eastbound car while driving home. The car, a 2002 Subaru Impreza, went off the highway, breaking through a section of guardrail and launching into the air, police said.

While airborne, police said the car started to overturn and rotate, before the roof of the vehicle was crushed when it came into contact with a tree.

Markwood was transported by a crew from White River Valley Ambulance to Gifford Medical Center, where police said he was treated for a shoulder injury. The car was destroyed, they said.