The line goes from downtown Chicago out to Elgin.
Metra said eight cars of a Canadian Pacific train derailed. No one was injured.
Metra says trains were not able to go past the Bartlett station Sunday night.
Passengers experienced delays Monday morning because Metra trains will be operating on a single track, but trains were back on schedule by Monday evening.