The derailment occurred around 5 p.m. while the train was moving cars out of the railyard.
The tank cars were carrying oil but none of it spilled. Some diesel fuel was released from the locomotive but contained by the fire department.
CP Rail spokesman Ed Greenberg says the cars are on the side of the track.
“We have crews on scene going through our strict protocols and procedures when it comes to ensuring that the site is safe and secure,” he said.
No one was hurt and the area didn’t have to be evacuated.
An investigation is underway to determine the cause of the derailment.