By the end of the 17th century, sultan Moulay Ismail decided to forcibly enslave all «blacks» in the Kingdom, including those who were free. Inspired by the Saadi dynasty, the sultan wanted to create an army based on slavery which angered Muslim scholars in Fez.