Tunisian–Algerian war (1807)

Tunisian–Algerian war (1807)
Hammouda Pacha.jpg
Hamouda Bey of Tunis
DateJanuary–July 1807

Tunisian victory

  • Complete emancipation of Tunisia from Algerian tutelage
  • End of Algerian raids into Tunisia
  • Tunisian failure to take Constantine
Flag of Tunis Bey-fr.svg Tunisia
Ottoman Empire
(diplomatic support)
Commanders and leaders
Flag of Tunis Bey-fr.svg Bey Hammuda
Flag of Tunis Bey-fr.svg Slimane Kahia
Flag of Tunis Bey-fr.svg Youssef of Tunis
Flag of Ottoman Algiers.svg Ahmed II
Flag of Ottoman Algiers.svg Hussein Bey Executed
50,000 7,000 initially
30,000 reinforcements

The Tunisian-Algerian war of 1807 was a conflict between the Beylik of Tunis and the Deylik of Algiers. The war led to the emancipation of Tunisia from any sort of Algerian influence, and the ending of the tribute paied by Tunisia to Algeria since 1756.


The war has a complicated background. 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. Ali was then taken to Algiers, stripped naked, humiliated, and brutally strangled to death in under 4 years by the victorious Algerians.[1][2] As part of the agreement, Tunis was from then on forced to pay tribute to Algiers, and Algiers was allowed to influence the Tunisian foreign policy. In the 1790s, led by Hammuda ibn Ali and the reformer Youssef Saheb Ettabaa (Youssef of Tunis) the Beylik of Tunis decided to reinvigorate relations with the Ottoman Empire (who disliked Algiers for its unruly and independent nature) and the Sultanate of Morocco (whom have been at conflict with the Algerians for about 250 years by this point). 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. This was obviously not liked by the Algerians, whom slowly but surely became more and more hostile to Hammuda.[3] While Algiers was experiencing a period of instability and severe unrest from the Odjak of Algiers, which began heavily influencing the local politics and exerting influence over the Dey,[4] Hammuda heavily reformed the Tunisian army on new, more modern lines, waiting for his time to strike.[5][6]

The War

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. Hammud promptly refused this, and mobilized more than 50,000 troops,[7] mainly consisting of Janissaries, militia troops drawn from Kouloughlis and Arab Tunisians, and tribal cavalry,[5] and appointed Slimane Kahia as the supreme commander of his forces. This declaration of war was supported by Selim III, who while couldn't provide military or economic support, provided diplomatic support to the Tunisians, and also secretly encouraged them to declare war on the first place.[3] The Bey (governor) of eastern Algeria, Hussein ben Salah Bey possessed about 4,000 regular troops at his disposal, and also received 3,000 troops as reinforcements from Algiers, putting his effective strength at about 7,000 troops, consisting of janissaries from the Odjak and hastily mobilized Arab-Berber tribal levy,[7] while also leaving local citizen militia of Constantine as defenders of the city. Well aware of his numerical inferiority compared to the Tunisian forces, he decided to hold the chokepoint at the Mansoura plateau in front of Constantine. Slimane assaulted this position which was vigorously defended by the Algerians, and was only able to capture it after 7 deadly assaults, taking many casualties.[7][8] While Hussein Bey escaped to Djemila, then Setif waiting for reinforcements, Slimane encamped on the Mansoura plateau, and decided laid siege to Constantine instead of assaulting it, which proved to be a mistake, as the defenders of Constantine received heavy reinforcements from Algiers after 1 month of siege during the night, led by Hussein Bey and the Bachagha of Algiers. Slimane commanded his elite cavalry division, led by Hameida ben Aiad, to assault the Algerians, but through brilliant maneuvering, the Algerians managed to push back the Tunisians. 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.[7] The Algerians wasted no time, and Hussein and the Bachagha immediately mobilized their army composed by this point mainly of mobilized Makhzen tribal warriors to enter and raid Tunisian territory. Unbeknownst to them, Youssef Saheb Ettabaa, Tunisian prime minister was encamped at the river Wadi Serrat, near El Kef. Upon meeting the Tunisian forces, the Algerians spread out, which proved to be a fatal mistake. The Tunisians severely overwhelmed camps by bombarding them severely and then attacking them while they were in disarray thanks to the heavy artillery barrage. 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.


This decisive victory liberated Tunisia from any Algerian influence, and temporarily put an end to the hostilities until 1810, when a more stable Algeria under Ali IV once again declared war on Tunisia. This defeat led to severe instability in Algiers and Constantine, Hussein Bey was executed for his defeat, and Ahmed II was assassinated in a massive military mutiny led by Ali III ar-Rasul, who was in turn overthrown by the aforementioned Ali IV.


  1. ^ Perry, Amos (1869). Carthage and Tunis: Past and Present: in Two Parts. Providence Press Company, Printers.
  2. ^ Montgomery-Massingberd, Hugh (1977). Burke's Royal Families of the World: Africa & the Middle East. Burke's Peerage. ISBN 978-0-85011-029-6.
  3. ^ a b Moalla, Asma (2005-08-17). The Regency of Tunis and the Ottoman Porte, 1777-1814: Army and Government of a North-African Eyâlet at the End of the Eighteenth Century. Routledge. ISBN 978-1-134-42984-4.
  4. ^ Panzac, Daniel (2005). The Barbary Corsairs: The End of a Legend, 1800-1820. BRILL. ISBN 978-90-04-12594-0.
  5. ^ a b Akyeampong, Emmanuel Kwaku; Gates (Jr.), Henry Louis (2012-02-02). Dictionary of African Biography. OUP USA. ISBN 978-0-19-538207-5.
  6. ^ jules, tavis d; Barton, Teresa (2018-02-22). Educational Transitions in Post-Revolutionary Spaces: Islam, Security, and Social Movements in Tunisia. Bloomsbury Publishing. ISBN 978-1-4742-8215-4.
  7. ^ a b c d Mercier, Ernest (1891). Histoire de l'Afrique septentrionale (Berbérie) depuis les temps les plus reculés jusqu'à la conquête française (1930) (in French). Ernest Leroux.
  8. ^ Constantine, Société Archéologique de la Province de (1864). Recueil des notices et mémoires de la Société Archéologique de la Province de Constantine (in French).