The wife and children of a man who died as he tried to stop his car rolling down a driveway in western Sydney were in the back seat at the time of the accident.

The 40-year-old man died after he was run over by his own car in the driveway off Rupertswood Road in Rooty Hill at about 8.45pm on Thursday, police say.

His wife and two children were in the back seat of the car at the time. Neighbours attempted to lift the vehicle off the man, but he died at the scene.

Police say the death is not being treated as suspicious. Originally published as Children in car as dad crushed to death