Train services have resumed after a car fell 10 metres onto the tracks in Cooloongup.
Emergency crews were called to the scene near Ennis Avenue and Elanora Drive around 1.20pm on Saturday.
Witnesses told Nine News the 58-year-old driver became trapped after he reversed straight through a fence, plunging onto the train tracks.
Firefighters managed to free the man, who was taken to Royal Perth Hospital with minor injuries.
Trains between Rockingham and Mandurah were cancelled for several hours but have since resumed.
Construction contract awarded for Kwinana Freeway upgrade
Port Kennedy humpback whale buried at landfill facility
Secret Harbour by-election: Where to vote on August 29
Mandurah man charged over role in alleged sophisticated cybercrime syndicate
Locals urged to look out for man who removed electronic monitoring device
Four charged over brutal Warnbro home invasion allegedly linked to illicit tobacco trade
UPDATE: Sadly the whale has died overnight
City of Rockingham records steep increase in animal cruelty complaints related to untreated medical conditions
Accused dirt bike hoons charged by Mandurah Police