no edit summary
250px||Enterprise capturing the Tripoli]]
The Barbary States were a collection of North African states, many of which practiced state-supported piracy in order to exact tribute from weaker Atlantic powers. Morocco was an independent kingdom, Algiers, Tunis, and Tripoli owed a loose allegiance to the Ottoman Empire. The United States fought two separate wars with Tripoli (1801–1805) and Algiers (1815–1816), although at other times it preferred to pay tribute to obtain the release of captives held in the Barbary States.