An Arizona man who pleaded guilty to decapitating his wife and their two dogs received a 29-year prison sentence on Friday.

Kenneth Wakefield apologized through tears to Trina Heisch’s family in Maricopa County Superior Court.

Wakefield, who has a history of mental illness, said he was “trying to get the evil out” of Heisch when he beheaded her in the summer of 2015 in Phoenix, according to authorities. After the brutal attacks, Wakefield mutilated his own body by slicing off his own forearm and gouging out his own eye.

He was high on synthetic marijuana and meth on the day of the attack.

Ariz. man accused of decapitating wife & dogs howls in court

Wakefield had pleaded guilty to murder and other charges earlier this year. The plea deal recommended a 29-year term, and a judge made it official on Friday morning.

Wakefield and Heisch met while they were each serving 10-year sentences in a state mental hospital for stabbing relatives. They both were found to be “guilty, except insane” on an attempted murder charge in the stabbing of relatives.

He had sought an insanity defense in his wife’s death.

With News Wire Services