C
the war between the united states and the muslim countries of north africa commonly called barbary states, among them, sultanate of morocco and tripoli, quasi-independent city-state, nominally belonging to the ottoman empire. the cause of the war were repeated attacks by barbary pirates on american shipping trade.