According to GRP SHO Balram Singh, the incident took place yesterday when two miscreants started looting passengers of the Shamli-Saharanpur train on knife point.
However, some passengers overpowered the robbers and handed them over to the Government Railway Police.
The arrested duo have been identified as Ravikant, a BBA student and his aide Waseem.
Both were apprehended and taken into custody at GRP police station, police said, adding two knives were seized from them.
The passenger train was on its way to Saharanpur from Shamli railway station at the time of the incident.