A car flipped onto its roof outside Sowerby Bridge High School causing delays through the town.
Safer Roads and Neighbourhood Support department said the accident happened at 11.09 on Albert Road.
The crash involved a Citroen Xsara, which rolled onto its roof after a collision with a Renault Megane.
The 26-year-old female driver suffered minor injuries and was taken to Calderdale Royal hospital.
The road was closed temporarily as recovery work was carried out.