Hafidiya
Coup in pre-colonial Morocco, 1907–1908
Read the original on Wikipedia ↗ Last updated from Wikipedia: 29 November 2026
| The Hafidiya الحفيظية | |||||||
|---|---|---|---|---|---|---|---|
Sultan Abd al-Aziz fleeing from the Battle of Marrakesh | |||||||
| |||||||
| Belligerents | |||||||
|
|
| ||||||
| Commanders and leaders | |||||||
|
| ||||||
| Strength | |||||||
|
|
| ||||||
| Casualties and losses | |||||||
| About 1000 killed[3] | |||||||
The Hafidiya (Arabic: الحفيظية, romanized: al-Ḥafīẓīya) was a coup d'état[a] in Morocco between 1907 and 1908 in which Abd al-Hafid seized power from his brother Abd al-Aziz.[5][6] Abd al-Hafid started his movement in Marrakesh in the aftermath of the Algeciras Conference, the French occupation of Oujda and of Casablanca and the gaining the support of Amazigh leaders in the south.[5][7] The Ulama of Fes supported Abdelhafid only with an unprecedented Conditioned Bay'ah, or pledge of allegiance.[5]
While Mawlay Muhammad was initially set to succeed Hassan I, his younger son, Abd al-Aziz, was instead designated heir shortly before Hassan's death. This was partly due to the support of Hassan's favourite wife, Lalla Ruqaya and the grand vizier Ba Ahmed. Furthermore, Muhammad was supposedly seen as a poor commander and half-hearted Muslim while Abd al-Aziz was Hassan's favourite.[8][9] Abd al-Aziz's ascension was unpopular in Morocco with the ulama reluctantly giving him the bayʿah[10] with some favouring his brothers Mawlay Bilgith and Mawlay Muhammad.[10][11] Due to Abd al-Aziz's young age, Ba Ahmed served as de facto regent until his death in 1900. As regent, Ba Ahmed attempted to maintain Hassan's previous policies. However, under him, the legitimacy of the regime was compromised and the economic situation worsened.[11] Furthermore, Morocco was not in a good international position with Ba Ahmed's policies failing in the eastern frontier with Algeria.[12]
When Abd al-Aziz took power, he embarked on a policy of reform[13][14] and hoped to break from the past politically and personally.[15] However, his policy of reform ended up in failure.[14] A number of factors generated an unpopular reputation. These include his scandalous and controversial public behaviour in a society where public gestures were extremely important, the loss of Touat to France, the implementation of the unpopular tartib tax and his overindulgence in European inventions and customs.[14][16] One particularly controversial event was when Abd al-Aziz ordered the execution of a tribesman who murdered a European. This tribesman took refuge in the shrine of Mawlay Idris which he was supposed to be under the protection of. Much of the ulama had a connection to Mawlay Idris and they saw this as a sacrilege against the spiritual authority of the shrine.[17] As a result of this violation, a former makhzan official, Jilali al-Zarhuni, decided to began a revolt in north east Morocco among the tribe of Ghiata. He claimed to be the brother of Abd al-Aziz, Mawlay Muhammad, and declared a jihad against Abd al-Aziz.[18][19]
Due to pressure from the French, Abd al-Aziz's makhzan called for an international conference at Algeciras in 1906.[14] This was first suggested by the majlis al-a‘yān (lit. 'council of notables') that Abd al-Aziz established. The makhzan sought to internationalise the Moroccan question as they believed it could ward off French predominance.[20][21] Ultimately, the Algeciras Conference ended up being a French success and a Moroccan failure. To the horror of Moroccans, French influence grew as an international control body dominated by France was established.[22][23] The ratification of Algeciras solidified the break between Abd al-Aziz and pro-resistance Moroccans. Anti-French and Anti-European feeling were exacerbated[24] and some concluded that at that point, the solution was the overthrow of Abd al-Aziz.[23] The Algeciras Conference of 1906 had the effect of dividing Moroccans into supporters of either the Sultan Abd al-Aziz or his brother Abd al-Hafid into those calling for reform for jihad, respectively.[7] Anti-European attacks gradually increased[24] with the most significant being the murder of Émile Mauchamp which resulted in the occupation of Oujda.[25][26] Abd al-Aziz blamed Moroccans for this which bolstered his opposition.[25] On 30 July 1907, Chaouia tribesmen attacked Europeans in Casablanca which prompted the French to land a military force in Casablanca.[27] This kickstarted the Chaouia campaign.[28]
Beginnings of the conspiracy
According to Alfred Georges Paul Martin, the origins of the Hafidiya date back to 1904, growing out of several meetings between Abd al-Hafid and Madani al-Glawi. During these talks, they discussed the deteriorating political situation and projects they could undertake to assure the "security of Islam".[29]
Proclamation
In May 1907, after France had occupied Oujda,[30] the southern aristocrats, led by the head of the Glaoua tribe, Madani al-Glawi, invited Abd al-Hafid, an elder brother of Abd al-Aziz and viceroy at Marrakesh, to become sultan, and on August 16, 1907, after the bombardment and occupation of Casablanca, Abdelhafid was proclaimed sovereign in Marrakesh with all of the usual formalities.[31][32]
In September, Abd al-Aziz arrived at Rabat from Fez and endeavoured to secure the support of the European powers against his brother. From France, he accepted the grand cordon of the Légion d’honneur (opens on Wikipedia) and was later enabled to negotiate a loan. That was seen as leaning to Christianity and aroused further opposition to his rule.
Conditioned Bay'ah
In January 1908, the Ulama of Fes led by Muhammad al-Kattani declared Abd al-Aziz deposed and they imposed a conditioned bay'ah on Abd al-Hafid.[31][5] The conditions for support included him to resume jihad, liberate Oujda and Casablanca, end the protégé system, restrict Europeans to port cities and consult the ummah in all major decisions.[5][33]
Battle of Marrakesh

The Battle of Marrakech took place on August 19, 1908, when supporters of Abd al-Hafid destroyed the mahalla of Abd al-Aziz on the road from Rabat to Marrakesh.[5] Abd al-Aziz fled to Casablanca, then occupied by the French.[5]
Loading “Press”…
Loading “Aftermath”…
Loading “Notes”…
Loading “References”…
Loading “Sources”…
Image credits (5)
- عبد العزيز هاربا من مراكش.jpg — Le Petit Journal, Public domain, via Wikimedia Commons
- Flag of Morocco (1666–1915).svg — Flad, Public domain, via Wikimedia Commons
- Sultan Abd el-Aziz Le Petit Journal.jpg — Le Petit Journal, Public domain, via Wikimedia Commons
- السلطان عبد الحفيظ.jpg — J. Giry, Rue de Nimes 115, Vichy (France), Public domain, via Wikimedia Commons
- مزرعة ألفاريز قرب الدار البيضاء، مدمرة في بداية الاحتلال الفرنسي والتي كان يقصدها عبد العزيز.png — en:l'Illustration, Public domain, via Wikimedia Commons