The 52-year-old died after he was struck by a train close to Doncaster railway station at aroundÂ 8.30pmÂ yesterday.
Medics battled to revive him but the man, from Doncaster, was pronounced dead at the scene.
His family have been informed of the death.
British Transport Police said the death is not being treated as suspicious.
A file is being prepared for the coroner.
Call the Samaritans on 116 123.