Following the end of the Seventh Ottoman–Venetian War (1714–1718), Venice was left a minor power. In a sequence of wars lasting almost 75 years, the Republic lost most of its overseas empire and impoverished itself in the process. after the Treaty of Karlowitz in 1718, the Republic enjoyed peace with the Ottoman Empire, but remained in a state of quasi-war with the Ottomans' North African vassals, the Barbary Coast—Ottoman Algeria, Ottoman Tripolitania, Ottoman Tunisia, and Alaouite Morocco—whose raids against Christian shipping continued unabated. The Republic concluded a series of peace agreements with these states in 1763–1765, but these were not honoured for long. This set the stage for the last actions of the Venetian navy, bound up with the name of Angelo Emo.