The rail traffic was fully restored by 3 p m, said a railway official.
Several trains including Swarn Shatabdi, Shan-e-Punjab and Dadar Express were diverted, said ADRM, Ambala Railway Division, S K Sinha.
Sinha, who visited the scene, said an inquiry had been ordered into the derailment.