A western Sydney man has been rescued by fire crews after becoming stuck in a washing machine.

Bankstown Fire and Rescue were called out to the home in Lakemba on July 26 to find the man had been trapped in the front loader for at least three hours.

The man is trapped in the washing machine. Credit: Bankstown Fire and Rescue

His legs were stuck inside the machine up to his waist.

The man, 22, is mildly autistic and had got himself stuck in the machine before, firefighters said.