Abd Al-Hafid
Abd al-Hafid was an Alaouite sultan who ruled Morocco from 1908 to 1912, during the final crisis of the country’s independence before the establishment of the French protectorate. His reign began with a challenge to his brother’s rule and ended with a treaty that placed Morocco under French control.
Rise to the sultanate
A member of Morocco’s ruling Alaouite dynasty, Abd al-Hafid was a younger brother of Sultan Abd al-Aziz. He served as governor in the south, including Marrakech. As European powers pressed for influence and the sultanate faced unrest, Abd al-Hafid became a rival to his brother. In 1907, he was proclaimed sultan in Marrakech by supporters who opposed Abd al-Aziz’s concessions to foreign powers.
The struggle for recognition continued into 1908. Abd al-Aziz abdicated after losing support, and Abd al-Hafid secured the allegiance of political and religious leaders in Fez. European governments formally recognized him in 1909. His accession reflected both domestic opposition to Abd al-Aziz and the wider contest over Morocco’s sovereignty.
A reign under growing pressure
Abd al-Hafid inherited a government weakened by debt, internal revolt, and foreign intervention. France and Spain had already expanded their military presence, while the 1906 Algeciras agreements had given European powers a formal role in Moroccan affairs. The sultan sought to preserve his authority amid these pressures, but unrest and the struggle to control the country intensified.
In 1911, a revolt in Fez left Abd al-Hafid besieged, and French troops entered the city to relieve him. The episode further increased French power in Morocco. The same year, Germany’s dispatch of a gunboat to Agadir brought a new international crisis over the country’s future.
The Treaty of Fez and abdication
On 30 March 1912, Abd al-Hafid signed the Treaty of Fez with France. The agreement established Morocco as a French protectorate and sharply limited the sultan’s independent authority. In August, Abd al-Hafid abdicated in favor of his brother Yusef. He then left Morocco and lived in France.
Abd al-Hafid died in 1937. His reign is remembered as a turning point in modern Moroccan history: he came to power amid resistance to foreign influence, yet his rule ended with the treaty that formalized French domination. The path from contested accession to protectorate captures the pressures facing the Moroccan state in the early twentieth century.



