Sale, Morocco: Three men have been convicted of terrorism and sentenced to death by a Moroccan court 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 also handed 19 accomplices jail terms ranging from five to 30 years.

A girl carries the picture of 28-year-old Norwegian Maren Ueland and 24-year-old Danish Louisa Vesterager Jespersen during a candlelight vigil last year. Credit:AP

Louisa Vesterager Jespersen, 24, from Denmark, and Maren Ueland, 28, from Norway, were found stabbed in the neck in their tent in December near the Moroccan village of Imlil, a popular hiking destination. The slayings were recorded on video and posted online.