First Barbary War (1801–05), conflict between the United States and Tripoli (now in Libya), incited by American refusal to continue payment of tribute to the piratical rulers of the North African Barbary States of Algiers, Tunis, Morocco, and Tripoli.