To try and sum up extremism in one word or reason will ultimately lead to a vast generalization. But the main reason behind the cause of extremism is the educational curricula, because this lays the foundations that shape one’s thoughts. So when these curricula teach extremism, extremists will be born.
Morocco has recently joined other countries who’ve promised to correct their school curricula. King Mohammad VI personally chaired the council of ministers to discuss the educational curriculum and instructed the minister of national education and the minister of endowment and Islamic affairs to review religious teachings and textbooks in Moroccan schools.