The Barbary States (16th–19th centuries) comprised Tripoli, Tunis, Algiers, and Morocco. Of these, Morocco was the westernmost, situated on the Atlantic coast of North Africa.