1830 French invade Algeria.
1844 Algerian independence leader Abdel Kadir takes refuge in Morocco, provoking fighting between Morocco and the French; Moroccans are forced to expel Abdel Kadir.
1859 Morocco and Spain fight over boundaries of Spanish enclave of Ceuta
In northern Morocco; Morocco pays indemnity and gives up Sidi Ifni on Atlantic coast to the Spanish.
1901 Sultan Abd-el-Aziz tries to introduce European-style land taxation;
Relying heavily on European advisors, he angers many Moroccans.
1907 Abd al-Hafid leads revolt against sultan and replaces Abd-el-Aziz.
1912 Abd al-Hafid requests French assistance, and Morocco becomes a French
Protectorate.
1912-1925 Marshal Louis Lyautey is French resident general in Morocco.
1926 After Lyautey is replaced as resident general, French settlement expands, and French cultural influences increase.
1927 Sultan Moulay Yusuf dies, and his son Sidi Mohammed (Mohammed V) becomes sultan.
1939 When World War II begins, Mohammed V urges Moroccans to help France
Resist Germany.
Mohammed V as a national hero and made it more difficult for the French to control Morocco. With the outbreak of the Algerian rebellion against French rule in 1954, the burden of governing Morocco became too heavy for France. In 1956 the French recognized the full independence of Morocco, and Mohammed V formed a Moroccan government.
During that same year the Spanish gave up most of their colonial holdings in Morocco. Under the new governmental system, the country became a constitutional monarchy, governed by elected officials under a king.