The Barbary Wars were a series of two wars fought by the United States, Sweden, and the Kingdom of Sicily against the Barbary Pirates. The First Barbary War extended from 10 May 1801 to 10 June 1805, with the Second Barbary War lasting only three days, ending on 19 June 1815. The Barbary Wars were the first major American war fought entirely outside the New World.

First Barbary War

The wars were largely a reaction to piracy by the Barbary states. Since the 16th century, North African pirates had captured ships and even raided cities across the Mediterranean Sea. By the 19th century, pirate activity had declined, but Barbary pirates continued to demand tribute from American merchant vessels in the Mediterranean. Refusal to pay would result in the capture of American ships and goods, and often the enslavement or ransoming of crew members.

After Thomas Jefferson became president of the US in March 1801, he sent a U.S. Navy fleet to the Mediterranean to combat the Barbary pirates. The fleet bombarded numerous fortified cities in present-day Libya, Tunisia, and Algeria, ultimately extracting concessions of safe passage from the Barbary states and ending the first war.

Second Barbary War

During the War of 1812, with the encouragement of the United Kingdom, the Barbary corsairs resumed their attacks on American vessels. Following the conclusion of the War of 1812 and America’s peace with Britain, James Madison, Jefferson’s successor, directed military forces against the Barbary states in the Second Barbary War. Lasting only three days, the second conflict ended the need for further tribute from the United States, granted the U.S. full shipping rights in the Mediterranean Sea, and significantly reduced incidents of piracy in the region.