Sultan Abd al-Hafid signs the Treaty of Fez, making Morocco a French protectorate.

The Treaty of Fes (Arabic: , French: Trait de Fs), officially the Treaty Concluded Between France and Morocco on March 30, 1912, for the Organization of the French Protectorate in the Sherifien Empire (Trait conclu entre la France et le Maroc le 30 mars 1912, pour l'organisation du protectorat franais dans l'Empire chrifien), was a treaty signed by Sultan Abd al-Hafid of Morocco under duress and French diplomat Eugne Regnault on 30 March 1912. It established the French protectorate in Morocco, and remained in effect until the Franco-Moroccan Joint Declaration of March 2, 1956.The treaty gave France the right to occupy certain parts of the country with the pretext of protecting the Sultan from internal opposition, and to hold actual reins of power while preserving the mask of indirect rule consisted of the Sultan and the Sharifian government. Under the terms, the French Resident-General held absolute powers in external as well as internal affairs, and was the only one capable of representing Morocco in foreign countries. The Sultan however, retained the right to sign the decrees (dahirs), which were submitted by the Resident-Generals.When news of the treaty finally leaked to the Moroccan populace, it was met with immediate and violent backlash in the Intifada of Fes.

This is the list of rulers in Morocco, since the establishment of the first in 789. The common and formal titles of these rulers has varied, depending on the time period. Since 1957, the designation King has been used.

The present King of Morocco is Mohammed VI of the Alaouite dynasty, since 23 July 1999.