The first diplomatic mention of the Barbary Powers is found in Article 8 of the Treaty of Amity and Commerce with France in 1778