Muslims and non-Muslims cheered and sang together outside a New Zealand court Thursday as the white supremacist who unleashed carnage at two mosques was jailed for life, with one survivor saying he will be able to sleep at night again.

"What we have seen today is the justice that we hoped (for)," said Gamal Fouda, imam of Christchurch's Al Noor mosque, as well-wishers handed flowers to the survivors and bereaved family members emerging from the Christchurch High Court.

Survivor Taj Kamran said he will be 'able to sleep' after the New Zealand mosque shooter was jailed for life
Survivor Taj Kamran said he will be 'able to sleep' after the New Zealand mosque shooter was jailed for life AFP / Sanka VIDANAGAMA

Australian Brenton Tarrant, 29, began his killing spree at Al Noor before moving to a second mosque in suburban Linwood while Muslims were at Friday prayers on March 15 last year.

He murdered 51 people that day, and at the end of a four-day hearing, he became the first person in New Zealand to be sentenced to life imprisonment without parole.

Afghan refugee Taj Kamran, who was shot several times in the leg and still requires walking aids, leaned against a fence as he raised his arms in joy.

Members of the public had gathered in front of the High Court in Christchurch to support relatives of victims killed in the 2019 twin mosque shootings
Members of the public had gathered in front of the High Court in Christchurch to support relatives of victims killed in the 2019 twin mosque shootings AFP / Sanka VIDANAGAMA

"Tonight I will be able to sleep," he said.

"I could not sleep after the shooting, I cried a lot."

Muslims and non-Muslims cheered and sang outside the Christchurch High Court as the mosque shooter was sentenced
Muslims and non-Muslims cheered and sang outside the Christchurch High Court as the mosque shooter was sentenced AFP / SANKA VIDANAGAMA

Despite the sentence, the strictest possible under New Zealand law, Fouda said the loss inflicted by Tarrant was irreversible.

"No punishment is going to bring our loved ones back and our sadness will continue for the rest of our lives," he said.

Some survivors and family members of victims described feeling relief, and the hope for some closure.

The sentencing hearing was attended by survivors of the shooting as well as family members of the victims
The sentencing hearing was attended by survivors of the shooting as well as family members of the victims AFP / Sanka VIDANAGAMA

Abdul Aziz, who chased the gunman from the Linwood mosque, said the sentence was "what he deserved to get and what we deserved to get. We can move on with our lives."

And Haminah Tuyan, whose husband was killed by Tarrant, said she was "relieved and at peace" and was going home to pray.

SOUNDBITE "Today the legal procedures of this heinous crime has been done. No punishment will bring our loved ones back," says the Imam of Christchurch's Al Noor Mosque after a court sentenced gunman Brenton Tarrant to life in prison without parole for th
SOUNDBITE "Today the legal procedures of this heinous crime has been done. No punishment will bring our loved ones back," says the Imam of Christchurch's Al Noor Mosque after a court sentenced gunman Brenton Tarrant to life in prison without parole for the massacre of 51 Muslim worshippers last year. AFPTV / Marty MELVILLE

"In our religion, after something like this we put our forehead on the ground and on the floor and we thank Allah profusely," she added.

Hazim Al-Umari, father of 35-year-old Hussein who was shot dead while trying to protect others, said the life sentence was what he wanted.

"I am happy, happy for us. Hussein was brave, we know from the eyewitnesses and from the video that he tried to do something to protect the worshippers. He could have run away but he didn't," he said.

"It doesn't bring our son back but it ends this chapter."

The crowd of supporters outside the court was organised by Christchurch's Student Volunteer Army, which was founded as a community help organisation following the devastating 2011 earthquakes in the city that killed 185 people.

Its chief executive Sam Johnson said they wanted to "do something nice" for the Muslim community.

"You can see all New Zealanders here and many people supporting us and that is what makes us stronger and stronger," said Ahmede Yesuf, who was wounded at Al Noor.

New Zealand police commission Andrew Coster, meanwhile, said was "very satisfied" with the outcome.

But he deflected a question about whether there could be other potential terrorists in the community who, like Tarrant, had no criminal record and were not on any intelligence watchlist.

Coster said the official inquiry into the massacre was yet to be completed "and obviously there might be some findings and learnings from that and we're ready to receive any recommendations. We continue to work as vigilantly as we can."