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.
Baldivis Police on the lookout for reckless dirt bike riders
WATCH: Youths captured on CCTV stealing car in Golden Bay
Fire crews battle early morning blaze in Warnbro
Driver charged over alleged hit-and-run on Mandurah Terrace
More paramedics, ambulances to be stationed in Dawesville, Australind
Strict demersal fishing bans to come into force off WA coast to save species from extinction
Police call for witnesses to fatal Waroona crash
Teen injured in suspected hit-and-run in Mandurah