The traffic on Delhi-Howrah rail line was disrupted for several hours due to the incident, police said.
The Dadri railway crossing was closed for a train to pass when a biker, Naresh, moved from below the stoppage rod and started crossing the track, police said.
Another person followed the bike, when a speeding EMU train hit them at Dadri railway track, they said.
The biker died on the spot, while the pillion rider Manoj died on the way to hospital.
