After the death of Sultan Yazid Bin Muhammed in 1792, the governor of Oran Muhammed Al-Kabir planned for an invasion of northeastern Morocco, where he took control of Oujda and the eastern part of the Rif. After Sultan Yazid invasion, another one took place by Sultan Mawla Yazid in 1795. Sultan Mawla’s invasion ended successfully and northeastern territories were under Moroccan control.