The incident took place around 2 a.m. and disrupted the rail route between Delhi and Howrah. No reports of casualties have been reported so far. A probe has been launched and further details are awaited.
A senior Railway official requesting anonymity told a news agency that: "A big tragedy was averted as the train was slow while it was entering the Tundla station."
The train was just 300 metres from the railway station when it collided with the goods train, he said.
Soon after the accident all the senior officials rushed to the spot. "An inquiry has been ordered," an officer said.
The remaining coaches of the train were decoupled and left for their destination at 5.20 a.m., he added.
Following the accident, the Delhi-Howrah route was blocked as the railways diverted many trains.
The trains to Howrah were diverted through Lucknow, while those headed to Delhi were diverted through Agra.