A man found dead on the railway line in Dewsbury has not been formally identified as relatives have yet to be informed.
A spokesman for British Transport Police said the man had not been struck by the train which stopped when the body was found.
The 8.12am Dewsbury to Leeds train had just left Dewsbury Railway Station.
The spokesman said: “Our officers were called to the line at Dewsbury shortly before 8.30am on Wednesday, December 31, after a train driver reported seeing a body on the line.
“Colleagues from Yorkshire Ambulance Service also attended but a man from Ossett was pronounced dead at the scene.
“The man’s death is not being treated as suspicious but officers are attempting to inform his family. We will also prepare a file for the coroner.”
The man’s age has not been released.
The incident caused train services between Leeds and Huddersfield to be cancelled.
It is the second tragedy on the rail lines in the local area this week. On Monday a 39-year-old Halifax woman died after being hit by a train near Hipperholme Tunnel. She has not yet been named.