A Kuwaiti appeals court has revoked a five-year imprisonment sentence earlier given to a teen charged with joining the terrorist Daesh (ISIS) organisation.

The 10th grader was also charged with planning to blow up a mosque in the area of Mubarak Al Kabeer, part of Kuwait City.

In May, Kuwaiti newspaper Al Rai reported that a juveniles court had sentenced a teenager to five years in prison for joining Daesh and attempting to blow up a Shiite mosque in the area of Mubarak Al Kabeer. During trial, the teen denied links with the militant group, or possessing explosives.

Also in May, Kuwaiti prosecutors ordered the remand of a citizen charged with joining an outlawed group and planning terror attacks in Saudi Arabia.

The man was also accused of promoting the banned group’s ideology on social media and pursuing activities harmful to the country’s national interests.

In 2015, some 27 people were killed in the bombing of a Shiite mosque in Kuwait. The bombing claimed by Daesh, was carried out by a suicide attacker during the congregation Friday prayers in Al Sadeq Mosque.

The terrorist attack was the first of its kind in Kuwait in more than two decades.

Last year, an inmate convicted of involvement in the bombing attack was executed. He was charged with aiding the suicide bomber by driving the attacker to the mosque. Five other defendants were tried in absentia and sentenced to death. Eight others were sentenced to 15 years in prison each in the same case.