From the 1670s Mawlay Isma'il (r. 1672–1727) built a standing army of black soldiers loyal only to himself, the 'Abid al-Bukhari, so called because they swore allegiance on a copy of al-Bukhari's Sahih. In the late 1690s, as Chouki El Hamel shows in the Journal of African History (2010), he ordered his officials to enslave all black people in Morocco: slaves were to be bought compulsorily from their owners, and free black Muslims, including the Haratin, were registered as slaves under an invented hierarchy of slave categories. El Hamel argues that this violated the central rules of Islamic law on slavery, which forbade enslaving free Muslims, and that the project constructed a slave status for all black people; it provoked open conflict with the 'ulama of Fez, some of whom protested in writing, until the sultan forced them to endorse the register in 1708. Soldiers' families were settled in camps where boys were trained from about age ten in masonry, horsemanship and musketry and enlisted around sixteen. The army became a political force that made and unmade sultans until the nineteenth century. Captives brought across the Sahara into Morocco are counted in 'The Trans-Saharan Slave Trade, 1450–1750'; this entry concerns the enslavement and registration of people already living in Morocco.
The 'Alawi sultan Mawlay Isma'il ordered his officials to seize, buy or register as slaves black Moroccans, including legally free Haratin, to form a hereditary slave army bound to him by oath on al-Bukhari's hadith collection
There is no significant documented death toll attached to the registration itself: the project's aim was to acquire people as soldiers and servants, not to kill them. Deaths in the army's many campaigns and in resistance to enslavement are not quantified in any source consulted.
El Hamel (Journal of African History, 2010, and Black Morocco, 2013) documents the forcible enslavement and registration of free and enslaved black Moroccans for compulsory lifelong military and domestic service.
Morocco