In the 16th century under Ottoman rule, the coastal region of North Africa was known as the Barbary Coast. Tunis was its centre, and the base for piracy against European ships in the Mediterranean.
The name is derived from the Berbers, the oldest inhabitants of the region.