He must have been dead tired.

A Spanish prisoner declared dead by three doctors was only snoozing, a conclusion made by a coroner after he heard the man snoring — minutes before cutting into him for an autopsy on Sunday, according to reports.

Relatives said Gonzalo Montoya Jiménez “had autopsy markings on him, ready to be opened up” when a doctor at the Legal Medicine in Oviedo heard him sawing wood inside his body bag, the BBC reported citing Spanish-language outlet La Voz de Asturias.

Jiménez, who had been imprisoned for 29 years, was found unresponsive in his Asturias jail cell the day before, and three separate doctors signed a death certificate before he was set to be dissected.

Sources now believe the man suffers from catalepsy, a deep, trance-like condition that can leave sufferers rigid and unresponsive for hours or even days, according to TeleCinco.