Emergency services were called to the railway line near Rossington at 10.02pm following reports of a casualty on the tracks.
The incident resulted in all the lines between Retford and Doncaster being blocked, and caused a delay of up to two hours while emergency services dealt with the incident.
A spokesperson from British Transport Police said: “British Transport Police were called to the line near Rossington at 10.02pm yesterday evening (16 May) following reports of a casualty on the tracks.
“Paramedics also attended and sadly a person was pronounced dead at the scene.”
The spokesperson added that the incident is not being treated as suspicious and a file will be prepared for the coroner.
Last year, a man from Doncaster also tragically died after being struck by an LNER train at the same level crossing.