A 999 call to the Scottish Fire and Rescue Service (SFRS) made shortly before 4am reported the incident on the B730 in Dundonald.
Two appliances were immediately sent from Kilmarnock and Dreghorn community fire stations, and crews reached the scene within six minutes.
Station manager Gregor McPherson, said: "Firefighters arrived to find a man trapped inside the car and began working to safely release him.
"They used hydraulic cutting equipment to remove the vehicle's roof and create space for him to be lifted clear using a rescue board. Our crews were operating side-by-side with ambulance personnel who were providing trauma care during the rescue operation."
After being released, the motorist was taken to Crosshouse Hospital near Kilmarnock. His injuries are not thought to be life-threatening.
Station manager McPherson, added: "This effective road rescue required the close partnership between firefighters and ambulance crews, which is often crucial where people are trapped or injured following a collision.
"Emergency responders always give everything they have to save lives, using their specialist skills to free people who are trapped and get the injured to hospital. The reality is there are times when it simply isn't enough.
"All motorists can help reduce the chance they will be involved in a collision that could see themselves, their passengers or other road users killed or injured.
"Everyone should ensure their vehicles are well-maintained and they are alert to the surface and weather conditions, which can significantly increase stopping distances and reduce visibility.
"By giving ourselves time to safely complete our journeys and driving at an appropriate speed within the limit, we will reduce the chance of being involved in a collision and help prevent tragedies."
Further information on safe winter driving is available from Police Scotland, at: http://www.scotland.police.uk/whats-happening/travel-advice/winter-driving/.