Barbary pirates
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.