No casualties were reported in the two accidents.
"The engine and power car are affected. Since the speed of the (Ranchi-Delhi Rajdhani Express) train was very low, there was no injury to any passenger," said Neeraj Sharma, Northern Railways spokesperson.
The incident took place around 11.45 am.
"The accident occurred at around 6.25 am this morning and we have already cleared out the site. All passengers were put on the remaining coaches and by 7.28 am all of them had left the spot. All of them are safe and no one was injured in the accident," said ministry spokesperson Anil Saxena.
It was the third derailment in Uttar Pradesh in less than a month, On August 19, the Kalinga Utkal Express derailed in Muzaffarnagar district, killing 22 people. On August 23, the Kaifiat Express derailed in Auraiya district.
The derailments of the Rajdhani and the Shaktipunj Express are the first two accidents after Piyush Goyal took over as the new railways minister this week.
(Except for the headline, this story has not been edited by NDTV staff and is published from a syndicated feed.)
Follow NDTV for latest election news and live coverage of assembly elections 2019 in Maharashtra and Haryana.
Subscribe to our YouTube channel, like us on Facebook or follow us on Twitter and Instagram for latest news and live news updates.