what is the  capital city of libya which  Barbary pirates was also based primarily in 
Barbary pirates: The Barbary pirates, sometimes called Barbary corsairs or Ottoman corsairs, were pirates and privateers who operated from North Africa, based primarily in the ports of Salé, Rabat, Algiers, Tunis, and Tripoli. Tripoli: Tripoli (Arabic: طرابلس‎ ‎ , "Ṭarābulus" ; Berber: "Ṭrables") is the capital city and the largest city of Libya.
Tripoli