Maghrebi war (1699–1702)

Algerian victory[1] The Maghrebi war (1699–1702) was a conflict involving a Tunisian, Tripolitanian, and Moroccan coalition, and the Deylik of Algiers.

During this time the freshly rising Alaouite dynasty also sought to expand their control, and especially fancied the Beylik of Mascara, an Algerian governorate in the west of the country.

During his early reign, Alaouite sultan Ismail Ibn Sharif directed several unsuccessful invasions to take over the Beylik of Mascara which all resulted in defeats in 1672 at Tlemcen, 1678 at the Oued Za, 1692 at the Moulouya, 1693 in Oran and 1694 in Djidiouïa.

This didn't last long though, and in 1695 the Tunisians revolted and defeated ben Cheker at the battle of Kairouan, reinstating the Muradid dynasty.

After these defeats the two countries of Tunis and Morocco decided to ally against the Algerians, whom recently experienced instability following a revolt by the Odjak of Algiers against the Corsair-friendly Hadj Chaabane.

In the Hijri year of 1111 (1699–1700) the Moroccan army, mainly composed of the Black Guard, led by the son of Ismail, Zeidan or Zidan entered Algeria.

[11] After it fell, the Moroccan army went on and advanced to Mascara, the capital of the Beylik where he looted the palace of the Bey, despite his initial success this campaign resulted in a peace negotiation which infuriated Moulay Ismail and caused him to direct another offensive against the Algerians.

[12][13] These achievements by Moulay Zidan are apparently unknown to contemporary comment and may be assumed to be fiction, however during the same year a Moroccan prince was defeated by an Algerian battalion in September while he was on a minor tax raid in Tlemcen.

On 3 October 1700 Algerian forces successfully defeated the armies of Murad in the Battle of Jouami' al' Ulama near Sétif.