A train derailment tied up traffic in downtown Winnipeg during the Wednesday afternoon rush hour, but nothing leaked and no one was injured, according to CN Rail.

CN confirmed that nine cars from a westbound train derailed on the railway's main line at about 4:40 p.m. CT.

The City of Winnipeg says it happened behind the Federal Building, on the southeast corner of Portage Avenue and Main Street.

All the derailed cars stayed upright and did not leak, a CN spokesperson said in an email.

No injuries were reported. The city says there has been no report of property damage to date.

The rail cars on the overpass part of the track over William Stephenson Way did not derail, according to the city.

CN says the only loaded cars contained sand, while two of the derailed cars were empty.

CN staff are working to restore the rail line, while investigators are looking into the cause of the derailment, according to the railway.