Below is a paper I wrote that takes a slightly different tack on Islamism in Morocco (a shorter take).
"The monarchy’s survival strategy has always hinged on their assumption as the final arbiter and authority for all Islam in Morocco. King Muhammad VI continues to view his role as “commander of the faithful” as giving him all necessary legitimacy to interact with, guide and disenfranchise the Islamic parties when needed. In Morocco especially one sees a certain distinction between Islam and Islamism. Because the monarchy pulls Islam under its purview and ownership on one hand and pulls its main religious opponent, the Islamists, into the secular political arena—Islam never has had a chance to become Islamism in the traditional sense."