The victims committed suicide yesterday by jumping in front of the train at Faazalpur railway crossing under Sadar Bazar police station area, police said today.
The Saharanpur-passenger train, coming from Delhi was headed to Muzaffarnagar.
One of the victims has been identified as Indrajeet Singh (22) while the identity of the other victim is yet to be ascertained.
The bodies have been sent for post-mortem, they said, adding, the matter is being investigated.