The Rif War (Tarifit: ⴰⵎⴻⵏⵖⵉ ⵏ ⴰⵔⵉⴼ, romanized: Amenɣi n Arif, Arabic: حرب الريف, romanized: ḥarb ar-rīf, Spanish: Guerra del Rif, French: Guerre du Rif) was an armed conflict fought from 1921 to 1926 between Spain (joined by France in 1924) and Berber tribes of the mountainous Rif region of northern Morocco.
Led by Abd el-Krim, the Riffians at first inflicted several defeats on the Spanish forces by using guerrilla tactics and with the help of captured European weapons. After France's military intervention against Abd el-Krim's forces and a major landing of Spanish troops at Al Hoceima, considered the first amphibious landing in history to involve the use of tanks and aircraft, Abd el-Krim surrendered to French forces and was put into exile.