First Barbary War
From 1801-02, Sweden was allied with the United States during the First Barbary War, fought against the Barbary corsairs to prevent further disruption of trade in the Mediterranean Sea.