The last three bogies of the train derailed near Nigoha area at about 3.30 AM when the train was going to Allahabad from Haridwar, Circle officer, Government railway police (GRP), RD Yadav said.
He said that some passengers received minor injuries in the incident.
Traffic was soon restored on the track.