Question: what is the  capital city of libya which  Barbary pirates was also based primarily in 
Sentence (from "USS Constellation (1797)"): Her first duties with the newly formed US Navy were to provide protection for American merchant shipping during the Quasi-War with France and to defeat the Barbary pirates in the First Barbary War.
Relevant evidence: No