The casus belli involved the construction, by the Tunisians, of a military post along the river intended to demarcate the territory between the two regencies.
Fifteen years later, the arrangement was challenged due to encroachments by neighboring tribes (Ben Chennouf) and the establishment of a military post on the river serving as the demarcation line.
Hussein Bey, the Pasha of Algiers, instructed Taïb Ben Chenouf from Kef to refrain from crossing the boundaries set in 1614.
However, due to his connections with the Harar (a faction of the Ouled Ben Chenouf), he switches sides to the Algerian camp, leading to the rout of the Tunisian army.
[1][5][6] Dey Youssef accepts the peace proposals conveyed by his officers and ratifies the treaty concluded with the Algerians for the delineation of the border.