What did the Barbary pirates do to manu countries

The Barbary pirates were known for attacking and plundering ships in the Mediterranean Sea and along the coasts of Europe, Africa, and the Americas. They targeted ships from countries such as Spain, Portugal, Italy, France, England, and the United States, capturing crew members and passengers for ransom or enslavement. The Barbary pirates also conducted raids on coastal towns and villages, stealing goods and taking captives to be sold as slaves. Their actions disrupted trade and navigation in the region for centuries.