First Barbary War: Yusuf Karamanli signs a treaty ending the hostilities between Tripolitania and the United States.
Yusuf (ibn Ali) Karamanli, Caramanli or Qaramanli or al-Qaramanli (most commonly Yusuf Karamanli), (1766 1838) was the longest-reigning Pasha of the Karamanli dynasty of Tripolitania (in present-day Libya). He is noted for his role in the Barbary Wars against the United States.
The First Barbary War (1801–1805), also known as the Tripolitan War and the Barbary Coast War, was the first of two Barbary Wars, in which the United States and Sweden fought against the four North African states known collectively as the "Barbary States".The cause of the U.S. participation was pirates from the Barbary States seizing American merchant ships and holding the crews for ransom, demanding the U.S. pay tribute to the Barbary rulers. United States President Thomas Jefferson refused to pay this tribute. Sweden had been at war with the Tripolitans since 1800.