Crews worked throughout Tuesday to upright Union Pacific cars that derailed on Monday.
As of 4:40 p.m. on Tuesday a spokesperson with the Union Pacific Railroad said the final two cars that derailed had been uprighted.
A little before 4 p.m. on Monday four freight cars went off the tracks in the Sacramento River Canyon north of Pollard Flat along Gibson Road directly under Interstate 5.
Three of those cars were empty and one contained scrap paper.
Train officials said none of the contents in the cars went into the river.
Crews have not determined what caused the 67-car train's derailment.
No one was hurt.
On Tuesday the derailment caused one Amtrak route to be cut short.
Passengers were bussed from Sacramento to Klamath Falls, Oregon.
A spokesperson said crews will continue to work until the track is reopen, but it is unknown when that will be.