A man in Southern California died after he was trapped inside a self-service car wash, police confirmed on Monday.

The unidentified man, 56, drove into the car wash in Escondido, California, on Friday "and for an unknown reason, tried to exit his vehicle,” the Escondido Police Department said Saturday in a statement.

“The vehicle then rolled forward, pinning the man between the car and the machinery,” the statement read.

The car wash did not appear to be activated at the time of the collision. The car's alarm went off, which alerted a nearby person who found the man and called the police.

Officers arrived at the scene and performed CPR. They found him trapped between a 2014 Scion XB and a part of the car wash machinery.

The man was rushed to Palomar Medical Center where he was pronounced dead, according to officials.

Lt. Scott Walters told NBC News that the car pinned the man to an area where the large rolling brushes sit when it's inactive.

The car wash has an automated side where customers stay inside their car while it gets pulled through, according to reports.