A Moroccan anti-terror court has sentenced four persons to between one and three years in prison over terror-related charges.

One defendant was sentenced to three years in prison for “forming a gang as part of a collective project to seriously undermine public order”, Xinhua news agency reported on Thursday.

Another was sentenced to two years, while the rest two were given one year for terror-related crimes, including “praising terrorist attack”.

In 2015, Morocco adopted a new bill, posing stricter charges on praising terrorism.

The law stipulates two to six years of prison for “praising acts that constitute terrorism offences” as well as “propaganda, praising, or promoting a terrorist or a terrorist group, gang, or entity”.