A tractor trailer that crashed into a guardrail on Highway 400 near Barrie snarled traffic for several kilometres.

According to the OPP, the tractor trailer was heading south on the highway when it went into the guardrail and ended up in the northbound lanes.

This happened south of Mapleview Drive on Thursday afternoon.

Police say no other vehicles were involved; minor injuries are reported.

Crews with Ontario's Ministry of Transportation have the left lanes of the southbound and northbound lanes closed for repairs near McKay Street. They are working to fix the median.

Work is expected to be completed around 9 p.m. on Thursday.