(KNBC-TV) A male nurse caught having sexual contact with the corpse of an elderly woman was sentenced to two years in a state prison Thursday, officials said.

Alejandro Razo, 62, of Reseda, was tasked with preparing an 82-year-old woman’s body for the mortuary on Jan. 20, 2013, according to the Los Angeles County District Attorney’s Office.

Another nurse caught Razo, a 20-year nursing veteran, with his pants down making “sexual contact” with the corpse, the DA’s office said. DNA evidence was also used to convict Razo.

Note: Read our discussion guidelines before commenting.