The First Inhabitants
The Rif has been inhabited since prehistory. In the eastern Rif, the cave of Ifri Oudadane, near Nador, has yielded traces of Early Neolithic occupation, including some of the oldest known pottery and cultivated plants in North Africa. These finds show that the Riffian coast was already part of the trade networks of the western Mediterranean more than seven thousand years ago.
In antiquity, the Phoenicians and then the Carthaginians set up trading posts on the coast. The best known is Rusadir, present-day Melilla. The Rif later became part of Mauretania, at least nominally, and then of the Roman province of Mauretania Tingitana, but the Roman presence remained limited to the coasts: the mountainous interior stayed under the authority of the Amazigh tribes.
The Emirate of Nekor, Morocco's First Muslim State
In the early 8th century, Salih ibn Mansur founded the Emirate of Nekor in the Temsamane region, often described as the first Muslim kingdom in Morocco, predating the Idrisid dynasty. Its capital, Nekor, stood on the plain of the same name, near present-day Al Hoceima. The emirate controlled part of the central Rif and traded with al-Andalus. It resisted the Norse raids of the 9th century and pressure from its powerful neighbors, before disappearing in the 11th century, when the city of Nekor was destroyed during the Almoravid expansion.
Badis, the Great Dynasties and Andalusia
In the Middle Ages, the Rif passed successively under the authority of the Almoravids, Almohads, Marinids and Wattasids. The port of Badis, opposite the rock of Vélez de la Gomera, served as the Mediterranean outlet of the kingdom of Fez. Relations with the Iberian Peninsula were intense: merchants, scholars and soldiers traveled between the two shores, and the fall of Granada in 1492 brought Andalusian refugees, Jewish and Muslim, to northern Morocco.
The Rif nevertheless kept a strong autonomy. The tribes governed themselves according to customary law and local assemblies, while recognizing the religious authority of the sultan.
Reading the bay on an old chart
A small red building stands on an islet in this manuscript chart. Farther down the sheet, a compass rose and an anchor mark the open water. Numbers dotted across the bay indicate depths. The chart shows the coast as someone approaching by sea would see it.
The Bibliothèque nationale de France holds the sheet under the title Baÿs de Buzemas in the French Navy’s hydrographic collection. Its catalogue dates the drawing to the 17th or 18th century. View the chart’s catalogue record at the BnF.
The Spanish Presidios
After the Reconquista, Spain gained a foothold on the Riffian coast: Melilla in 1497, the rock of Vélez de la Gomera definitively in 1564, the rock of Al Hoceima (Peñón de Alhucemas) in 1673, and then the Chafarinas Islands in 1848. These strongholds, the "presidios", were long besieged and supplied by sea. Melilla is today a Spanish autonomous city, claimed by Morocco.
In the 19th century, clashes around Melilla multiplied: the war of 1893, known as the Margallo War, and then the campaign of 1909, marked by the Spanish defeat at Barranco del Lobo. These episodes prepared the conquest of the interior.
The Spanish Protectorate and the Rif War
In 1912, the Treaty of Fez established the French protectorate over Morocco, and a Franco-Spanish convention gave Spain a zone in the north, which included the Rif. The Spanish advance met determined resistance. In July 1921, at Annual, Riffian fighters led by Mohamed ben Abd el-Krim el-Khattabi inflicted one of the heaviest colonial defeats of the century on the Spanish army. Abd el-Krim then organized a modern state, the Republic of the Rif, before being defeated in 1926 by a Franco-Spanish coalition. This chapter is covered in detail in our feature on the Rif War and Abd el-Krim.
Independence and the Revolt of 1958-1959
Morocco regained its independence in 1956 and the Spanish zone in the north was returned to it. But integrating the Rif into the new state proved difficult: unemployment, a feeling of marginalization, and a change of administration and working language. In autumn 1958, a revolt broke out in the central Rif, led in particular by Mohamed Sellam Amezzian. It was put down by the army in early 1959. This episode left a lasting mark on regional memory and on relations between the Rif and the central government.
The Era of Emigration
From the 1960s, labor agreements signed by Morocco with Germany and France (1963), Belgium (1964) and then the Netherlands (1969) opened the way to mass emigration. The Rif, short of farmland and densely populated, supplied a large share of the workers. Money sent home by emigrants transformed the economy and the landscape, notably in Nador. See our page on the Riffian diaspora.
The Modern Rif
Recent decades have seen infrastructure catch up: the Mediterranean coastal road, the airports of Al Hoceima and Nador, ports, universities and the Al Hoceima National Park. The region was also struck by two earthquakes, in 1994 and above all on 24 February 2004, which killed more than six hundred people around Al Hoceima.
The Rif remains a region proud of its Amazigh identity, attached to its memory and turned toward its diaspora.
Timeline
- 6th millennium BC
Neolithic occupation of the cave of Ifri Oudadane, near Nador.
- 8th century
Foundation of the Emirate of Nekor by Salih ibn Mansur.
- 11th century
End of the Emirate of Nekor, absorbed into the Almoravid empire.
- 1497
Castile takes Melilla.
- 1564
Definitive occupation of the rock of Vélez de la Gomera.
- 1673
Occupation of the rock of Al Hoceima.
- 1912
Protectorate: the Rif is placed in the Spanish zone.
- 1921
Battle of Annual, Abd el-Krim's victory over the Spanish army.
- 1926
Abd el-Krim surrenders and is exiled to Réunion.
- 1956
Moroccan independence.
- 1958-1959
Revolt in the Rif and military repression.
- 1963-1969
Labor agreements with Europe, start of the great emigration.
- 2004
Al Hoceima earthquake.



