Capture of the Rif (1792)

Since the late 17th century the Algerians were able to gain possession and recognition of sovereignty over a portion of eastern Morocco around Oujda, initially after a set of victories against the Moroccan Sultan Ismail Ibn Sharif in engagements such as the Battle of Moulouya and the Siege of Oran, in which the Deylik of Algiers and Spain cooperated against Morocco.

[1][2][3] Upon the proclamation of the Moroccan Sultan Moulay Slimane, the Bey of Oran Mohammed el-Kebier, after succeeding in liberating Oran from Spanish occupation, crossed into Moroccan territory under the pretext of preparing the siege of Melilla.

[4] In 1792 the Algerians managed to conquer and take control of the eastern Rif region in Morocco.

[5][6] The Bey of Oran then withdrew to Algeria as soon as he had appointed his qaids for the eastern provinces.

[7] The Bey of Oran put up no resistance, and with the capture of the region in 1795,[8] the border between the Regency of Algiers and Morocco was definitively fixed at Wadi Kiss.