[The Stolen Village: Baltimore and the Barbary Pirates](https://www.amazon.co.uk/dp/0862789559)
The book ends up giving the reader background on the Barbary pirates - a mix of Turks, Dutch, Algerian, and Moroccan pirates led by a Dutch convert to Islam (from Catholicism). It also attempts to tell the stories of as many of the slaves as possible using historical information from people known to suffered a similar fate.
It details some of the stories of Algiers and the Ottoman empire and how Europeans were enslaved by the Muslims who controlled the Mediterranean at the time and who targeted English shipping and later American shipping leading us to dispatch Marines to the shores of Tripoli.
In the end it describes the roundabout way that one of the pirates may have ended up on Manhattan and may be one of the founders of some of America's oldest monied families with descendents that may include people such as Kasey Kasem and Jon Voigt. Really a great story.
I'll have to check out some of these other books mentioned on this thread since history is one of my favorite subjects.