Question: what is the  capital city of libya which  Barbary pirates was also based primarily in 
Sentence (from "Joseph Pitts (author)"): Pitts's "A True and Faithful Account of the Religion and Manners of the Mohammetans, with an Account of the Author's Being Taken Captive" includes descriptions of his capture and captivity, including some of the first English descriptions of Islamic rituals.
Relevant evidence: No