Three men were convicted of terrorism and sentenced to death by a Moroccan court Thursday (local time) for the brutal slaying of two Scandinavian women hiking in the Atlas Mountains.

A fourth suspect who fled the scene was given life in prison.

After several hours of deliberation, the court handed 19 accomplices jail terms ranging from five to 30 years. All have 10 days to appeal.

Maren Ueland, 28 from Norway, was also killed. Photo / Supplied
Maren Ueland, 28 from Norway, was also killed. Photo / Supplied

Maren Ueland, 28, from Norway, and Louisa Vesterager Jespersen, 24, from Denmark, were stabbed multiple times before the killers slit their throats and decapitated them in the crime which shook the world.

Advertisement

A graphic video showing Ms Jespersen's murder was filmed by one of the assailants and uploaded to social media, where it went viral after thousands of people shared it on Facebook, Twitter, 4Chan and Reddit.

During the horrific video sent to the girls' parents, the perpetrators cry out: "It's Allah's will" and are heard saying: "This is revenge for our brothers in Hajine in Syria. These are your heads, enemy of God."

Their bodies were found December 17 in their camping tent in a remote area in the Atlas Mountains. Authorities believe the hikers were killed by men affiliated with the Islamic State group.

None of the 23 reacted as the sentences were read out Thursday, but their families rushed out of the crowded courtroom crying.

The men claimed allegiance to the Islamic State group.

All 23 addressed the court before the verdicts, most begging for leniency.

The main defendants, who asked Allah for forgiveness, were carpenters Jounes Ouzayed and Rashid Afatti, and street merchant Abdessamad Al Joud. They were sentenced to death.

Louisa Vesterager Jespersen, 24, from Denmark, was horiffically murdered in Morocco. Photo / Supplied
Louisa Vesterager Jespersen, 24, from Denmark, was horiffically murdered in Morocco. Photo / Supplied

The man who fled the scene is Khaiali Abderahman, who got life.

Advertisement

Morocco only rarely carries out death sentences. The last execution was in 1993 of Mustapha Tabet, a once-powerful Casablanca police commissioner, convicted of raping and abusing hundreds of victims.

In closing arguments in June, the prosecutor asked the court to sentence the top suspects to death, and described the three main defendants as "human beasts."

A Swiss-Spanish convert to Islam, Kevin Zoller, who had pleaded innocent, received a 20-year sentence. Prosecutors said he had links to the men who orchestrated the women's killings and direct contact with IS members in Syria via the encrypted messaging service Telegram.

Another Swiss man was sentenced in April to 10 years in prison, convicted on charges including "deliberately helping perpetrators of terrorist acts" and training terrorists, the state-run news agency MAP said at the time.

A forensic team is seen at the area where the bodies of two Scandinavian women tourists were found dead. Photo / AP
A forensic team is seen at the area where the bodies of two Scandinavian women tourists were found dead. Photo / AP

The lawyer for Vesterager's family said he was "100% satisfied" with the verdicts. Khalid El Fataoui noted that Louisa Vesterager's mother had asked the court in a letter at an earlier hearing this month to sentence the killers to death.

"We obtained what she asked for."

The court also ordered the four main defendants to pay the equivalent of $209,000 in damages to the family of the Norwegian victim, but refused a demand from the Danish victim's family for the Moroccan state to pay damages.

El Fataoui said he would appeal.

THEIR FINAL DAYS

Rachid Imerhade, a mountain guide who had met the two friends a few days before their deaths, described the pair as "happy" in their final days.

He said: "They were smiling, chatty and sociable. They talked a lot with the other people around."

Tour guide Rachid shows the sight Thursday Dec. 20, 2018, where he says one of the women was found. Photo / AP
Tour guide Rachid shows the sight Thursday Dec. 20, 2018, where he says one of the women was found. Photo / AP

Jespersen's mother, Helle Petersen, told the Danish newspaper B.T. that her daughter was "always happy and positive. Everyone loved her and she saw the best in everyone".

She added that she had warned her daughter about travelling to Morocco "because of the chaotic situation", reported the Straits Times.