Tunisian–Algerian War (1807)

In 1756, Algiers invaded Tunis and helped and removed Abu al-Hasan Ali I in favor the previous Bey's son, Muhammad I ar-Rashid.

The Ottoman Sultan of this period, Selim III was very Tunisian friendly, and hoped to weaken the power of Algeria and tip the scale of balance in the region of the Maghreb.

[7][8] In 1807 a letter from the Algerian ruler, Ahmed II came Tunis, demanding more tribute, and for Tunisia to give up any claims on Tabarka and to hand over rule of the region to Algiers.

After receiving more volunteer reinforcements from Annaba, Hussein encircled Slimane's army and forced them to retreat hastily, leaving behind all sorts of provisions, small arms, and artillery.

Seeing the chaos caused by these attacks, the Bachagha and Hussein tried to hold out their positions with their regular professional Spahis and Janissaries, to no avail, as they were soon also pushed back, taking severe casualties, and ending the war.