The Tunisian prince Mohammed ben Cheker asked the dey of Algiers, at the time Hadj Chabane,[4] for help in order to make himself Bey of Tunis.
The dey of Algiers accepted his proposal, invaded Tunisia in 1694,[5] and defeated the Tunisian army at the Battle of Kef on June 24.
The Algerian army a arrived in front of Tunis in August and started the siege.
Despite the efforts of the Tunisian defenders, Tunis fell after 3 months, and the Algerians plundered the city on 12 November 1694, and Tunis fell under the control of the Dey of Algiers, with administration by Chaabane Khodja and Ben Cheker.
[8] Mohammed Bey el-Mouradi fled to Chios or the Sahara and Ben Cheker reigned over Tunis for six months as a governor for Algiers, but his reign was tyrannical and led the Tunisians to appeal to Mohammed Bey el-Mouradi in exile The latter defeated Ben Cheker On May 1, 1695 at the Battle of Merguellil, near Kairouan, and made himself bey of Tunis again.