In short
Who colonized Morocco?
France and Spain. The 1912 Treaty of Fez split Morocco into a large French protectorate and Spanish zones in the north and south; independence came on 2 March 1956.
Morocco kept its sultan and lost its sovereignty: the protectorate model left indigenous institutions standing as a facade over French administration.

How rule changed in Morocco
These periods describe different governing arrangements. The presence of a trading company, a military occupation and direct colonial government are not interchangeable; the notes preserve those distinctions where the record identifies them.
Political chronology
Rulers, periods and governing arrangements
| Period | Ruler or administration | Context |
|---|---|---|
| since 1631, sovereign until 1912 | Alaouite Sultanate | See the chronology and context below. |
| 1912–1956 | French protectorate | See the chronology and context below. |
| 1912–1956 | Spanish protectorate zones | See the chronology and context below. |
Periods may overlap where control differed by territory. A national independence date does not imply that every enclave or dependency changed status on that day.
At a glance
Key facts
- Colonising powers
- France, Spain
- Independence
- 2 March 1956
- Chemical warfare
- Mustard gas used against Rif civilians in the 1920s
- Partition
- Two European powers, one country, one sultan kept as a figurehead
- Enclaves
- Ceuta and Melilla remain under Spanish sovereignty
Chronology
Key dates
1912
Treaty of Fez establishes the protectorates.
1921–26
Rif War; Spain and France use chemical weapons against Rifian villages.
1953
France deposes and exiles Sultan Mohammed V.
1956
Independence restored.
Context
What the record shows
The Rif War is among the first conflicts in which a European power used chemical weapons systematically against a civilian population.
Visual timeline
Who ruled Morocco, and for how long
Bars are drawn to scale from the periods in the table above (1631–2026). Overlapping bars mean authority was shared, contested or held over different parts of the territory.
- Alaouite Sultanatesince 1631, sovereign until 1912 · 395 yrs
- French protectorate1912–1956 · 44 yrs
- Spanish protectorate zones1912–1956 · 44 yrs
Elsewhere in North Africa
- Who colonized Algeria? — France
- Who colonized Egypt? — Britain, Ottoman Empire (suzerainty)
- Who colonized Sudan? — Britain, Egypt
- Who colonized Libya? — Italy, Ottoman Empire (previously)
- Who colonized Tunisia? — France
Questions
Frequently asked
- Who colonised Morocco?
- France and Spain, under the protectorate system established by the 1912 Treaty of Fez.
- Was Morocco a French colony?
- It was a protectorate rather than a colony in law, but France controlled administration, defence and foreign policy.
- When did Morocco become independent?
- 2 March 1956.
Read on