Sydney rail worker rescues drunk man trespassing on train tracks

An intoxicated man who stumbled onto train tracks at a Sydney train station had a lucky escape, thanks to a nearby worker.

The man was filmed by a passerby as he wandered across the railway line at Marrickville Station on Sunday night.

In the footage, the 24-year-old runs across the tracks before stumbling and trying to haul himself to the safety of the platform.

Luckily for him, a Sydney Trains employee yanks him up onto the platform by the scruff of his shirt.

The woman who filmed the dangerous escapade told 7NEWS.com.au she felt bad for the staff that have to "deal with idiots."

Police say the incident occurred at 9.30pm - two minutes after two trains were scheduled to pass through the station.

A New South Wales police spokesperson told 7NEWS.com.au the man was taken to the station due to his "intoxication," and later released.

He is expected to be charged for going on to the running lines, and for possessing a prescribed restricted substance.

A spokesperson for the Sydney Trains said they could not comment on the incident itself as it was under police investigation, but said the man's actions were "extremely dangerous".

"Trespassing in the rail corridor is not only illegal; it's also extremely dangerous and places your life and others at risk."

Newshub.