Hadj Chabane had just been elected Dey by the Taifa of the Raïs.[8] He decided to declare war on the Sultan of Morocco as a result of continued efforts to ravage his territory. The borders between Ottoman Algeria and Morocco was first fixed at the Moulouya upon the Tlemcen War in 1551.[9][10][11] This was the fixed border until the city of Oujda was temporarily conquered by the Alawi sultan Sidi Mohammed in 1647.[12][7][13] A peace treaty between the two parties then delimited the border below the Tafna (upstream of Moulouya river).[14][15][16]
Moulay Ismail had led expeditions in Algeria twice in his early reign, he was defeated on both occasions, in 1672 at Tlemcen and 1678 at Oued Za.[17][18] The Moroccan incursions to the east of the Moulouya upstream, then Algerian territory, prompted Hadj Chabane to declare war on Sultan Moulay Ismail.[19][20]
Moulay Ismaïl learned of his arrival to Oujda and attempted to retrace his steps, however the Algerian army reached him at a ford of the Moulouïa which lead to clashes with the Algerians.[21] These tensions at the Algerian border occurred because Moulay Ismail wanted to have his "religious equality" with the Sultan of Istanbul recognized in the eyes of the Europeans. The alliance of France and the Ottomans intrigued him as he believed it could be an opportunity to counter Spain; or in case of war against the Algerians, an opportunity to bring an agreement between the Sultan of Istanbul and Fez.[22] Mouley Ismail even proposed making an alliance with the bey of Tunis.[22]
Battle
The dey marched against Mouley Ismail with 10,000 Janissaries and 3,000 spahis, as well as a contingent of Igawawen Kabyles. The Algerians encountered the enemy, composed of 14,000 infantrymen and 8,000 cavalrymen. Despite the numerical inferiority, they vigorously attacked the Moroccans and killed 5,000 of their men[20][2] while the Algerians suffered casualties of only a hundred.[2]
Léon Galibert gives the following account:
It was to the king of Morocco, who sometimes came to ravage his territory, that the new dey Chaaban declared war: he went to the western border with 10,000 janissaries and 3,000 spahis. There the Algerians met the enemy army, which was 14,000 infantrymen and 8,000 horses; despite the inferiority of their numbers, they attacked the Moroccans vigorously and killed 5,000 men; the Algerians lost only a hundred.
— Léon Galibert
Aftermath
The dey pursued the fugitives to the wall of Fez,[23] which was protected by an army of 24,000 foot soldiers and 20,000 horses. The Sultan of Morocco, Moulay Ismail commanded it in person, but was reluctant to engage in combat knowing the earlier victory that the Algerians had spread terror among his soldiers. Despite their numerical superiority they forced him to make peace proposals. The two commanders went to a tent erected between the two camps and a peace agreement was signed. Allegedly Moulay Ismail came to the conference with his hands bound in a sign of submission. Kissing the ground three times, he appealed to the protection of the padichah of Constantinople and then said to the Algerian Dey: "You are the knife and I am the flesh that you can cut".[24][20][25]
Moulay Ismael and the Moroccan army, terrified by this hard failure, are forced to ask for peace by granting in a treaty the sovereignty of the regency of Algiers on the territories going up to Moulouya.[7]Jean-Baptiste Estelle, the French consul in Salé from 1689 to 1698, commented on the defeat of Moulay Ismail, meanwhile a 1692 report from consul Baker highlighted that the French and English counterparts of Estelle in Algiers rejoiced in gleeful fellowship with the Algerians.[26]
The continued Moroccan offensives against Algiers in 1693, 1694, 1696, 1700, 1701, 1703 and 1707 ended in defeat.[18] The territory until the Moulouya river remained under Algiers for more than 100 years.[3][4][27][28][26]
^ abLe Maroc: ce qu'il faut en connaître. Ouvrage suivi d'un compte rendu de la conférence d'Algésiras. Publié sous le patronage du Comité du Maroc. Gustave Wolfrom. A. Challamel.
“Enfin les Turcs , que les Français ont remplacés en Algérie , ont possédé la rive droite de la Moulouya et Oudjda jusqu'en 1795 , époque à laquelle ils n'ont fait aucune opposition à l'accaparement de cette région par Mouley Sliman”
^ abSale, George, George Psalmanazar, Archibald Bower, George Shelvocke, John Campbell, and John Swinton. An Universal History, from the Earliest Accounts to the Present Time. Vol. 18. C. Bathurst, 1781.
^Martinière, Maximilien Antoine Cyprien Henri Poisson de La; Lacroix, Napoléon (1894). Documents pour servir à l'étude du nord ouest africain (in French). Gouvernement général de l'Algérie, Service des affaires indigènes.