To speak of the "Sharifian Empire" is to speak of a political entity that weaponized descent from the Prophet Muhammad (ﷺ) as a structural pillar of statecraft, transforming a lineage of saints into a dynasty of sultans. The term "Sharifian" derives from Sharif (plural: Ashraf or Shurafa ), meaning "noble." In the Moroccan context, it specifically refers to dynasties claiming descent from Hasan, the grandson of the Prophet. While other Islamic polities honored Ashraf , Morocco institutionalized them.

This victory was framed not as a mere military success but as a divine confirmation of Sharifian legitimacy. Al-Mansur adopted the title Amir al-Mu'minin (Commander of the Faithful) with renewed authority and, famously, al-Dhahabi (the Golden One) due to the vast Portuguese ransoms.

Enter the Saadis. Claiming descent from the Prophet via Hasan, they leveraged the rising tide of maraboutism —the veneration of holy men and their lineages. In a landscape where no central army existed, a Sharifian claim was a unifying ideology. When Muhammad al-Mahdi al-Saadi declared jihad against the Portuguese in 1530, he did not just command men; he commanded a covenant. To follow a Sharif was to follow the barakah of the Prophet himself. The Sharifian Empire reached its apogee under Sultan Ahmad al-Mansur (r. 1578–1603). The pivotal moment was the Battle of Wadi al-Makhazin (also known as the Battle of the Three Kings) in 1578. The Portuguese king, Sebastian I, invaded Morocco with a crusading zeal. The resulting Portuguese defeat was total: three kings died (Sebastian of Portugal, the deposed Moroccan sultan Abu Abdallah, and the Wattasid pretender), and Ahmad al-Mansur emerged victorious.

Sultan Moulay Ismail (r. 1672–1727) epitomized this. He built the Abid al-Bukhari —a slave army of Black African soldiers loyal only to him. This created a coercive apparatus independent of tribal whims. He also tethered the Sharifian mystique to monumental architecture, building the vast imperial city of Meknes. By fusing the spiritual authority of a Sharif with the ruthless efficiency of a military slave state, Moulay Ismail created the longest-reigning and most stable Sharifian regime. By the 19th century, the Sharifian model faced an external enemy it could not defeat: European industrial finance. The barakah of the sultan could not stop French artillery at Isly (1844). The dynasty attempted to modernize—the Nizam al-Jadid (New Army) reforms of Moulay Hassan I—but the tension between traditional Sharifian legitimacy and rational, bureaucratic statehood proved irreconcilable.

Before the Saadis (16th century), Morocco was dominated by non-Sharifian dynasties (Idrisids excepted, though they were often viewed as a localized holy house). The Wattasids, a Berber dynasty, failed not only militarily against the Portuguese and Spanish but also spiritually. They lacked the barakah to rally the fractious Amazigh (Berber) tribes and the powerful Sufi zawiyas (religious lodges).

Yet, this was an empire of extraction, not integration. The Saadis never built a bureaucracy to administer the Sudan; they relied on puppet askiyas . The barakah that won battles could not build a logistics network. The Sharifian model harbored a fatal flaw. If legitimacy derived from blood, then every male in the dynasty possessed a plausible claim to the throne. The Saadi succession was a nightmare of filicide, patricide, and palace coups. After al-Mansur’s death, his sons tore the empire apart, leading to the thirty-year Marrakesh-Fez civil war.

This was not a bug but a feature of the Sharifian system. The same principle of shura (consultation) that allowed tribal elites to select a pious leader also permitted them to discard a weak one. Unlike Ottoman primogeniture (or fratricide), Sharifian succession remained fluid, preventing the formation of a stable, rule-bound state. The current Sharifian dynasty, the Alaouites (established c. 1631), learned from Saadi failure. They did not abolish the barakah model; they refined it. They introduced a dialectical understanding of Moroccan power: the tension between the Makhzen (the government, the sultan’s tax-collecting, army-paying apparatus) and the Siba (the dissident, tax-rejecting tribal regions).