Sweden was one of the warring parties in the First Barbary War (1801-1805) with 3 frigates from the Swedish navy.
I had read that Sweden had a colony in Gold Coast (modern Ghana), taken from the Dutch, from 1650 to 1663, but was not aware that the Scandinavian country was doing any business in Africa in 1800's.
One thought was that perhaps this had something to do with pirates from Africa stealing Europeans to slavery, but the sources I have found on this do not mention Swedish victims. For example the Wikipedia article on Barbary Wars says that British and American ships had been attacked:
Since the 1600s, the Barbary pirates had attacked British shipping along the North Coast of Africa, holding captives for ransom or enslaving them. Ransoms were generally raised by families and local church groups. The British became familiar with captivity narratives written by Barbary pirates' prisoners and slaves.[5]
During the American Revolutionary War, the pirates attacked American ships.
This Wikipedia article does also mention that the pirates from northern Africa had attacked coastal towns in Europe all the way to Iceland:
In addition to seizing ships, they engaged in razzias, raids on European coastal towns and villages, mainly in Italy, France, Spain, and Portugal, but also in England, Scotland, the Netherlands, Ireland, and as far away as Iceland. The main purpose of their attacks was to capture European slaves for the Arab slave market in North Africa.4
The source referenced by the above section is a BBC article titled "British Slaves on the Barbary Coast". This article estimates the number of Europeans taken as slaves to be as high as 1,250,000:
for the 250 years between 1530 and 1780, the figure could easily have been as high as 1,250,000 - this is only just over a tenth of the Africans taken as slaves to the Americas from 1500 to 1800, but a considerable figure nevertheless.
Still none of these sources explicitly mention Swedish prisoners.
Question:
What kind of business or involvement did Sweden have in northern Africa and what developments lead to it being a party in the First Barbary War?