A white supremacist who killed 51 people at two mosques in New Zealand will serve life in jail without parole - the first person in the country's history to receive the sentence.
Australian Brenton Tarrant, 29, admitted to the murder of 51 people, attempted murder of another 40 people and one charge of terrorism.
The judge called Tarrant's actions "inhuman", saying he "showed no mercy".
The attack last March, which was livestreamed, shocked the world.
Tarrant's sentencing also marks the first terrorism conviction in New Zealand's history.
"Your crimes are so wicked that even if you are detained until you die, it will not exhaust the requirements of punishment," said Judge Cameron Mander in a Christchurch court on Thursday.
On imposing a sentence of life without parole, Justice Mander said: "If not here, then when?"
A sentence without parole means the offender will not be given the opportunity to leave prison after serving only a portion of their total sentence.
Justice Mander said such life sentences without parole were reserved only for the "very worst murders".
New Zealand does not have the death penalty as part of its justice system.
New Zealand Prime Minister Jacinda Ardern, upon hearing of Tarrant's sentencing, said it meant he would have "no notoriety, no platform... and we have no cause to think about him, to see him or to hear from him again".
"Today I hope is the last where we have any cause to hear or utter the name of the terrorist," she said.
The shootings prompted New Zealand to pass stricter gun laws and buy back certain types of weapons from owners.
What did the judge say?On the last day of a four-day sentencing hearing, Justice Mander spent almost an hour reminding Tarrant of each person he killed and injured.
He added that despite the gunman's guilty pleas, the gunman appeared "neither contrite nor ashamed".
Tarrant, who said through a lawyer in court that he did not oppose the prosecution's application for a life without parole sentence, did not react to the sentence. He had earlier also refused the right to speak at his sentencing.
The sentencing hearing began on Monday, with a large part of the first three days dedicated to hearing victim impact statements.
Tarrant appeared largely emotionless over the past three days, as almost 90 victims - some grieving, others defiant - confronted him.
Sara Qasem, whose father Abdelfattah Qasem died at the Al Noor Mosque, spoke of the last moments of his death, saying: "I wonder if he was in pain, if he was frightened, and what his final thoughts were. And I wish more than anything in the world that I could have been there to hold his hand and tell him it would all be OK."
She struggled to hold back her tears, before looking at Tarrant and saying "these tears are not for you".