James Holmes James Holmes

James Holmes, the 27-year-old who killed 12 people at a movie theater in Aurora, Colo. in 2012, was sentenced to life in prison without parole Friday.

Holmes had been eligible for the death penalty, but the 12 jurors could not unanimously agree to sentence him to death, The Associated Press reports.

After a four-month trial, the jury found Holmes guilty of 24 counts of first-degree murder last month. He was convicted on 166 counts total, including attempted murder and weapons charges. Holmes' lawyers never contested his guilt, but said the massacre was prompted by a psychotic break as the result of schizophrenia.

Parents of Aurora movie theater shooter: We feel guilty

Two years ago, Holmes offered to plead guilty and avoid a trial if he could avoid the death penalty in return. Prosecutors rejected the offer.

Holmes killed 12 people and injured 70 others on July 20, 2012 when he opened fire during a screening of The Dark Knight Rises.