Abdelsamad al-Joud, Younes Ouziad and Rashid Afati were sentenced to life imprisonment for murder of Norwegian citizen Maren Ueland (28) and Danish citizen Louisa Jespersen (24) Anti-terror court in Salé, near the Moroccan capital Rabat.
The bodies of the tourists were found decapitated in December in a remote area of the Moroccan High Atlas. Both women had been seen in their hotel in Marrakech with three men before they went to the mountains to hike.
The state Maghreb Arab Press (MAP) previously reported that the couple had been killed with a "melee weapon".
Both the Moroccan and Danish authorities described the killings as a terrorist act Islamic State.
The video, which is authentic according to the authorities, shows the murder of one of the two young wanderers.