Heart-stopping footage has been released of a hero pedestrian dramatically saving a man's life after he collapsed in front of an oncoming train.

The breathtaking video shows the onlooker sprinting towards the train track in the Russian city of Derbent, before incredibly pulling the seemingly unconscious man to safety.

At the beginning of the clip, the man, who would go on to faint, can be seen wearing a white shirt and dark trousers approaching the track as the bright headlights of the train beam out.

As he nears the railway line, his footing appears to grow more unstable before he takes an almost fatal tumble to the ground, his head hanging over the steel and track ballast.

It is unclear what made the man tumble, but 30C heat in the area suggests it was a stifling day in Russia's southernmost city.