Firefighters removed the roof of a silver Vauxhall Corsa to release two occupants, a man and a woman, after the accident on Tickhill Road, Maltby, between Scotch Spring Lane and Lime Kiln Lane at 12.40am.
Police said the pair were taken to hospital. Injuries not believed to be life threatening.