The Rif is a mountainous region in northern Morocco that stretches from Cape Spartel and Tangier in the west to Ras Kebdana and the Moulouya River in the east, and from the Mediterranean Sea in the north to the river of Ouargha in the south. It is part of the Cordillera Bética that also includes the mountains of Southern Spain. The region's name comes from the Berber word arif. The Rif produces as much as one half of the world's hashish.
The Rif was colonized by the Spanish until the Moroccan guerilla leader, Abd el-Krim, freed the Rif from foreign rule and established the Republic of the Rif in 1921. In 1926, it was dissolved by a joint expedition of the Spanish Army of Africa and French forces during the Rif War. It remained under Spanish control until it was returned to Morocco after independence in 1956.