Dylann Roof, the white supremacist already sentenced to death in federal court for a 2015 massacre at a black church in South Carolina, has pleaded guilty to separate state murder charges, sparing relatives of the victims a second trial.
Roof, wearing a grey prison jumpsuit and shackled at the wrists and waist, stood in a state courtroom in Charleston and entered guilty pleas to the murders of nine African-Americans at Emanuel African Methodist Episcopal Church.
He also pleaded guilty in the attempted murder of three survivors.
Judge JC Nicholson sentenced 23-year-old Roof to nine consecutive life terms without possibility of parole, and three consecutive 30-year prison terms in the attempt to kill Felicia Sanders, her grandchild, and Polly Sheppard.
In January, Roof was sentenced to death after his conviction on 33 federal counts, including hate crimes and obstruction of religion.
"I think he should get death," said Eva Jackson Dilligard, sister of Susie Jackson, 87, who was shot 11 times.
"He hurt so many people," she said during Monday's court session.
"We don't need to see his face on TV every time they want to talk about him. I'm a child of God but he hurt the entire family."
State prosecutor Scarlett Wilson on Monday summarised the "mountains of evidence" against Roof that were presented in US District Court during the December trial.
On June 17, 2015, Roof walked into the first-floor fellowship hall of Emanuel African Methodist Episcopal Church and was welcomed to a Bible study session.
As the members closed their eyes in prayer, he took out his pistol and began shooting at the 12 people there.
He shot the nine victims multiple times.
Authorities will likely transfer Roof to a federal penitentiary in Terre Haute, Indiana, to await execution.
An appeal of his death sentence has not yet been filed.