The Battle of Oujda occurred when the Almohad Caliph, supported by the Marinids, directed an offensive against the Zayyanids.
[1][2] The Almohad Caliph Abu al-Hasan as-Said al-Mutadid had set up camp and invited Yaghmurasen to submit to him and recognise him as his overlord.
The death of Caliph Abu al-Hasan as-Said al-Mutadid caused the dispersal of the Almohad besiegers.
In an alternative version, Yaghmurasen out of respect for the caliphal dignity dismounts and expresses his regrets.
[1][2][3][4] The victory enhanced the prestige of Yaghmurasen who then only held the title of amir al muslimin.