Moroccan King Mohammed VI granted pardon to 958 prisoners on the occasion of Eid al-Fitr, the kingdom's Justice Ministry said in a statement on Sunday.
The statement said that 29 prisoners convicted of extremism and terrorism are among the pardoned people, noting they have participated in an initiative launched by the Moroccan government to rehabilitate terrorists.
Of these prisoners, 23 were released, while six got reductions in their sentences.
Called "Moussalaha," meaning "reconciliation" in Arabic, the program is offered to prisoners who have demonstrated willingness to disavow extremism.
Since 2002, Morocco has dismantled more than 2,000 militant cells and arrested more than 3,500 people accused of links to radical groups.