The Barbary Wars were two wars fought at different times between the United States and the Barbary States of North Africa in the late eighteenth and early nineteenth centuries. At issue was the Barbary pirates' demand for tribute from American merchant vessels in the Mediterranean Sea. If ships of a given country failed to pay, pirates would attack the vessels and take their goods, often enslaving crew members or holding them for ransom. The administrations of both Thomas Jefferson and James Madison undertook actions against the Barbary States at different times. Jefferson led the first campaign, from 1801 to 1805, against pirates' cities in what are today Libya, Tunisia, and Algeria. Madison directed forces for the second war in 1815.
The First Barbary War
The First Barbary War (1801–1805), also known as the Tripolitan War or the Barbary Coast War, was the first of the two wars fought between the United States and the Northwest African Berber Muslim states, known collectively as the Barbary States. These included Tripoli, Tunis, and Algiers, which were quasi-independent entities nominally belonging to the Ottoman Empire, along with (briefly) the independent Sultanate of Morocco. Pirate ships and crews from the Barbary States regularly attacked and captured ships in the Mediterranean, extorting ransom for the lives of captured sailors and demanding tribute from various countries to avoid further attacks.
The war began when Thomas Jefferson became president of the United States in 1800 and refused to pay the Barbary States a tribute, the amount of which was greatly increased upon his election. Upon Jefferson's refusal, Yusuf Karamanli, the Pasha (or Bashaw) of Tripoli, declared war on the United States; however, Algiers and Tunis did not follow their ally in Tripoli. In response, Jefferson sent a U.S. naval fleet to the Mediterranean on May 13, 1801, under the command of Commodore Richard Dale. Throughout the war, the U.S. navy bombarded the various fortified cities along the coast and maintained a blockade in Tripoli's harbor. After a stunning defeat at Tripoli and wearied from the blockade and raids, Yussif Karamanli signed a treaty ending hostilities on June 10, 1805, and the United States was given fair passage through the Mediterranean.
The Second Barbary War
After the First Barbary War, the United States found its attention diverted to its deteriorating relationship with Great Britain over trade with France, which culminated in the War of 1812. The Barbary pirate states took this opportunity to resume their practice of attacking American and European merchant vessels in the Mediterranean Sea and holding their crews and officers for ransom.
The Second Barbary War, also known as the Algerine or Algerian War, occurred in 1815 under President Madison's administration. At the conclusion of the War of 1812, the United States returned to the problem of Barbary piracy, and on March 3, 1815, Congress authorized deployment of naval power against Algiers. By the final week of June, the U.S. navy had won several battles at sea and reached the coast of Algiers. The United States initiated negotiations and made demands for compensation, and the Algerians signed a treaty under which they agreed to return all American captives and pay $10,000 for seized shipping. The treaty guaranteed no further tributes by the United States and granted the United States full shipping rights in the Mediterranean Sea.
Burning of the USS Philadelphia
This painting depicts the USS Philadelphia, previously captured by the Tripolitans, ablaze after she was boarded by Stephen Decatur and 60 men and set afire, making their escape in the ketch Intrepid, depicted in the foreground.