Five freight cars toppled over when the train was being pulled out of the yard.
Several of the cars are reported to be leaking diesel fuel.
No one was injured in the derailment.
Metra trains were briefly delayed just after the incident, but were back to normal a short time later.