Since the incident in the early hours of Tuesday May 4, teams have worked around the clock to carry out safety inspections, put the five derailed wagons back on track and move them offsite.
They repaired damage to the track, points and signalling system overnight, which meant the line between Church Fenton and Micklefield could safely reopen.
Matt Rice, Route Director for Network Rail’s North and East Route, said: “This was a complex recovery process to get the derailed train back on track, then move it offsite so we could clearly assess the damage.
“Our teams have worked tirelessly to repair the track, points and signalling system, which has allowed a normal service to resume.
“I’d like to thank passengers as well as people in the community for their patience and understanding while we worked to reopen the line between Church Fenton and Micklefield.”
Passengers should continue to minimise travel as much as possible, in line with the latest Government guidance.