Police say a car failed to obey a stop sign on Saturday morning which resulted in a collision with a tanker truck, which flipped as a result of the collision.

The crash happened at Trussler Road and Cedar Creek Road in North Dumfries, near Ayr.

Thousands of litres of liquid fertilizer that the truck was carrying were spilled into the ditch.

Three people were taken to hospital with minor injuries, and a fourth person was treated for minor injuries on-scene.

Mark Rabbior, a spokesperson for the Ontario Ministry of the Environment and Climate Change, said it was important that the spill was handled promptly.

"There were several local fire departments that responded quite quickly, and they did burn the material to contain it in a ditch," Rabbior said.

An additional cleanup crew was called to finish clearing the fertilizer, including a dump truck and an excavator truck.

Cedar Creek Road was closed for several hours.

Charges are currently pending.