The First Barbary War was the first of two Barbary Wars which involved the United States and the “Barbary States” of North Africa. The hostilities were caused by pirates seizing American merchant ships and holding the crews for ransom, demanding the U.S. pay tribute to the Barbary rulers. President Thomas Jefferson refused to pay this tribute.