The man was boarding a rush hour train at Stirling station near Perth, Western Australia when he slipped and one leg became wedged in the gap
Quick-thinking railway passengers and staff freed a man who had become trapped between a train and the platform by rocking the carriage.
The man was boarding a rush hour train at Stirling station, northwest of Perth, Western Australia, at 8.50am when he slipped and one leg became wedged in the gap.
His leg was saved when those on the platform tilted the 10,000-tonne train which was squeezing his limb.
Transperth spokesman David Hynes told ABC the man was boarding at the tail end of peak hour, but the train was still fairly busy.
"He stood in the doorway and as he was sort of taking up his position there, one leg slipped outside the door, slipped outside the gap, and he was stuck," he said.
"We alerted the driver, made sure the train didn't move.
"Then our staff who were there at the time got the passengers, and there were lots of them, off the train, and organised them to sort of rock, tilt the train backwards away from the platform so they were able to get him out and rescue him."
Mr Hynes added the train was stationary when the man slipped, and although an ambulance was called he did not need to be taken to hospital.
Mr Hynes said it was not a problem caused by overcrowding and praised the actions of staff and passengers who helped free the man.
"Everyone sort of pitched in. It was people power that saved someone from possibly quite serious injury."