I found more interesting info.
16th century: The French had consuls in Algiers, Tunis and Tripoli. They built a fortified trading post between Algiers and Tunis in which they set up a coral fishing business and traded European goods for wax,hides,grain and horses with Berber tribes.
16th century: It seem that the common enemy of France,England,the Hansa, and the Ottoman was Spain.
Later, when the Dutch made peace with Spain, the Algerian were at war with them.
Between 1613 & 1622, the Barbary pirates captured 447 Dutch ships! 😮