In 1694, the Dey of Algiers Hadj Chabane agreed to help Ben Cheker in conquering the Beylik of Tunis and installing him as Bey but under Algerian vassalage.
Finally, Murad III Bey decided to launch the campaign into Algeria with his Moroccan allies.
[8] While the Tunisians besieged them, the Algerians successfully sent a so-called Ben Zekri to Algiers to urgently request reinforcements.
At that time, Murad continued besieging Constantine, and also attempted to pacify other areas such as Sétif.
The Dey of Algiers Hadj Mustapha agreed to send an army, which would meet the Tunisians at the Battle of Jouami' al-Ulama.