[PAR] [TLE] Barbary pirates [SEP] 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.  This area was known in Europe as the Barbary Coast, a term derived from the name of its Berber inhabitants.  Their predation extended throughout the Mediterranean, south along West Africa's Atlantic seaboard and even South America, and into the North Atlantic as far north as Iceland, but they primarily operated in the western Mediterranean.  In addition to seizing ships, they engaged in "Razzias", raids on European coastal towns and villages, mainly in Italy, France, Spain, and Portugal, but also in the British Isles, the Netherlands and as far away as Iceland.  The main purpose of their attacks was to capture Christian slaves for the Ottoman slave trade as well as the general Muslim slavery market in North Africa and the Middle East. [PAR] [TLE] Tripoli [SEP] Tripoli (Arabic: طرابلس‎ ‎ , "Ṭarābulus" ; Berber: "Ṭrables") is the capital city and the largest city of Libya.  Tripoli, with its metropolitan area, has a population of about 1.1 million people.  The city is located in the northwestern part of Libya on the edge of the desert, on a point of rocky land projecting into the Mediterranean and forming a bay.
[PAR] [TLE] Barbary pirates [ SEP ] 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 . This area was known in Europe as the Barbary Coast , a term derived from the name of its Berber inhabitants . Their predation extended throughout the Mediterranean , south along West Africa 's Atlantic seaboard and even South America , and into the North Atlantic as far north as Iceland , but they primarily operated in the western Mediterranean . In addition to seizing ships , they engaged in " Razzias " , raids on European coastal towns and villages , mainly in Italy , France , Spain , and Portugal , but also in the British Isles , the Netherlands and as far away as Iceland . The main purpose of their attacks was to capture Christian slaves for the Ottoman slave trade as well as the general Muslim slavery market in North Africa and the Middle East . [PAR] [TLE] Tripoli [ SEP ] Tripoli ( Arabic : طرابلس‎ ‎ , " Ṭarābulus " ; Berber : " Ṭrables " ) is the capital city and the largest city of Libya . Tripoli , with its metropolitan area , has a population of about 1.1 million people . The city is located in the northwestern part of Libya on the edge of the desert , on a point of rocky land projecting into the Mediterranean and forming a bay .
what is the  capital city of libya which  Barbary pirates was also based primarily in
what is the capital city of libya which Barbary pirates was also based primarily in
Tripoli
Tripoli