It was a lucky escape for a man who fell onto railway tracks moments before a train arrived in Melbourne's north on Monday.

Police say the 28-year-old man took a tumble off the platform at Craigieburn Station about midday.

Miracle escape as man falls under train - and lives Credit:Channel Seven

They suspect he suffered some sort of medical condition or attack, causing him to lose his balance.

It is unclear whether the man was forced to roll out of the train's way or whether he fell out of its path but he somehow managed to avoid being hit by the train as it pulled into the station.