Four coaches of the Intercity Express derailed in Fatehganj Paschimi area, disrupting rail traffic between Moradabad and Bareilly late on Sunday night.
No injury was reported to any passenger in the incident, which prima facie occurred due to rail fracture.
The incident took place when three general coaches and guard van returning from Rohtak via Delhi derailed near Bhitaura Railway Station, they said.
An alert was sounded in Mordabad division and divisional railway manager Sunil Mathur and ADRM Hitendra Mehrotra reached the control room and accident relief team was rushed to the spot, they said.
Rail traffic on the route was disrupted as some trains including Satyagrah Express and Nauchandi Express were stranded between Moradabad and Bareilly.
Rail traffic resumed after four bogies were removed and Intercity moved towards its destination.
Mathur said an inquiry would be conducted into the incident.