Barbary Wars

The Barbary Wars were a series of two wars fought by the United States, Sweden, and the Kingdom of Sicily against the Barbary states (including Tunis, Algiers, and Tripoli) and Morocco of North Africa in the early 19th century. Sweden had been at war with the Tripolitans since 1800 and was joined by the newly independent US. 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, and in the Arab World.

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 European coastal areas across the Mediterranean Sea. Originally starting out with the goal of capturing individuals for the domestic North African slave trade, the focus later shifted to kidnapping for ransom. 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 conduct from the Barbary states and ending the first 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.

Background
The Barbary corsairs were pirates and privateers who operated out of North Africa, based primarily in the ports of Tunis, Tripoli, and Algiers. This area was known in Europe as the Barbary Coast, in reference to the Berbers. The corsairs predation covered the Mediterranean, and extended south along West Africa's Atlantic, even to the eastern coast of Brazil, into the North Atlantic Ocean raiding the coasts of Ireland and western Britain, and going as far north as Iceland, but they primarily operated in the western Mediterranean. In addition to seizing ships, they engaged in razzias, raids on European coastal towns and villages, mainly in Italy, France, Spain, and Portugal, but also in England, Scotland, the Netherlands, Ireland, and as far away as Iceland. The main purpose of their attacks was to capture Europeans for the slave market in North Africa.

The Barbary states were nominally part of the Ottoman Empire, but in practice they were operating independently and the Ottoman government in Constantinople was not involved.

Attacks
Since the 1600s, the Barbary pirates had attacked British shipping along the northern coast of Africa, holding captives for ransom or enslaving them. Ransoms were generally raised by families and local church groups, including the Roman Catholic Church. The British became familiar with captivity narratives written by Barbary pirates' prisoners and slaves.

During the American Revolutionary War, the pirates attacked American ships. On December 20, 1777, Morocco's sultan Mohammed III declared that merchant ships of the new American nation would be under the protection of the sultanate and could thus enjoy safe passage into the Mediterranean and along the coast. The Moroccan-American Treaty of Friendship stands as America's oldest unbroken friendship treaty with a foreign power. In 1787, Morocco became one of the first nations to recognize the United States.

Starting in the 1780s, realizing that American vessels were no longer under the protection of the British navy, the Barbary pirates seized American ships in the Mediterranean. As the U.S. had disbanded its Continental Navy and had no seagoing military force, its government agreed in 1786 to pay tribute to stop the attacks. On March 20, 1794, at the urging of President George Washington, Congress voted to authorize the building of six heavy frigates and establish the United States Navy, in order to stop these attacks and demands for more and more money. The United States had signed treaties with all of the Barbary states after its independence was recognized between 1786 and 1794 to pay tribute in exchange for leaving American merchantmen alone, and by 1797, the United States had paid out $1.25 million or a fifth of the government's annual budget in tribute. These demands for tribute imposed a heavy financial drain and by 1799 the U.S. was in arrears of $140,000 to Algiers and some $150,000 to Tripoli. Many Americans resented these payments, arguing that the money would be better spent on a navy that would protect American ships from the attacks of the Barbary pirates, and in the 1800 United States presidential election, Thomas Jefferson won against incumbent second President John Adams in part by noting that the United States was "subjected to the spoliations of foreign cruisers" and was humiliated by paying "an enormous tribute to the petty tyrant of Algiers".

United States Mediterranean policy
After Spain concluded a peace treaty with Algiers in 1785, the Algerian corsair captains entered the waters of the Atlantic and attacked American ships, refusing to release them except for large sums of money. Two American ships, the schooner Maria, and the Dauphin were captured by Algerian pirates in July 1785 and the survivors forced into slavery, their ransom set at $60,000. A rumor that Benjamin Franklin, who was en route from France to Philadelphia about that time, had been captured by Barbary pirates, caused considerable upset in the U.S.

Thomas Jefferson, who was elected to the presidency twice, was inclined to the idea of confronting Algiers with force. He wrote in his autobiography:

"I was very unwilling that we should acquiesce in the European humiliation of paying a tribute to those lawless pirates and endeavored to form an association of the powers subject to habitual depredations from them." A proposal was made to put up a coalition of naval warships from nations at war with the Barbary states, provided that naval operations would be directed against Algerian vessels in particular, and then impose a maritime blockade on North Africa. When this proposal was presented to the concerned countries, France refused, and Spain apologized for not accepting it, because of its recent treaty with Algiers. The proposal was favored by Portugal, Malta, Naples, Venice, Denmark and Sweden. But the project failed when the US Congress objected to it for fear of its high financial costs, and more Algerian ships attacked American ships because of their lack of association with Algiers by any treaty in this period. Thus, in February 1, 1791, the US Congress was forced to allocate $40,000 to free American captives in Algiers. But two years later, it passed the "Naval Act of 1794" on the need to establish a defensive naval fleet, but stipulated in one of its articles that the project be stopped if an agreement was reached with Algiers.

During the presidency of George Washington (April 30, 1789 – 1797), and after America failed to form an American-European alliance against the Maghreb countries, the U.S. announced its desire to establish friendly relations with Algiers in February 1792, and reported this to the Dey Hassan III Pasha, like how Great Britain bought peace and security for its ships.

United States pays tribute to Algiers
When the American government began negotiating with Algiers, the Dey asked for $2,435,000 as the price for the peace contract and the ransom of the prisoners, then reduced the amount to $642,500 and $21,000 in military equipment that is presented to Algiers every year. Reconciliation took place between the two parties, and the dey pledged to work with Tunisia and Tripoli, to also sign this treaty, and peace would be achieved for America in the entire Mediterranean basin. On September 5, 1795, American negotiator Joseph Donaldson signed a peace treaty with the dey of Algiers, with 22 articles that included an upfront payment of $642,500 in specie (silver coinage) for peace, the release of American captives, expenses, and various gifts for the dey's royal court and family. America suffered another humiliation when it sent tribute carried by the large armed frigate "USS George Washington (1798)" to Algiers; Dey Mustapha Pasha forced US commodore William Bainbridge to hoist an Ottoman Algerian flag over his warship before sailing to Constantinople carrying tribute to the Ottoman sultan in 1800. As Lieutenant and consul William Eaton informed newly appointed Secretary of State John Marshall in 1800, "It is a maxim of the Barbary States, that 'The Christians who would be on good terms with them must fight well or pay well.'"

America paid to Algiers during the presidency of George Washington and his successor, John Adams (1797-1801), $1,000,000, or a fifth of the government's annual budget, in tribute.

First Barbary War (1801–1805)


The First Barbary War (1801–1805), also known as the Tripolitian War or the Barbary Coast War, was the first of two wars fought between the alliance of the United States and several European countries against the Northwest African Muslim states known collectively as the Barbary states. These were Tripoli and Algiers, quasi-independent entities nominally belonging to the Ottoman Empire, and (briefly) the independent Sultanate of Morocco. This war began during Thomas Jefferson's term when he refused to pay an amount that greatly increased when he became president. A U.S. naval fleet was sent on May 13, 1801, under the command of Commodore Richard Dale. Other notable officers in the fleet included Stephen Decatur, assigned to the frigate USS Essex (1799) and William Bainbridge in command of Essex which was attached to Commodore Richard Dale's squadron which also included USS Philadelphia (1799), USS President (1800) and USS Enterprise (1799). The ship Philadelphia was blockading Tripoli's harbor when she ran aground on an uncharted reef. Under fire from shore batteries and Tripolitan gunboats, Captain William Bainbridge tried to refloat her by casting off all of her guns and other objects that weighed it down. The ship was eventually captured and the crew taken prisoners and enslaved. To prevent this powerful warship from being used by the Barbary pirates, the ship was later destroyed by a raiding party of American Marines and soldiers and allied sailors from the armed forces of King Ferdinand of Sicily, led by Stephen Decatur.

In accordance with the treaty that was concluded Between them, on June 30, 1805, America paid Algiers $60,000 ransom for the prisoners, and agreed to continue sending gifts to the dey and replace its consul with another one, then withdrew its fleet from the Mediterranean in 1807.

Second Barbary war
When the war broke out between America and Britain in 1812, the regent on the British throne, George IV, sent a letter to Dey Haji Ali Pasha (1809-1815) confirming to him the bonds of friendship that united the two countries and declaring his country's readiness to defend Algiers against every aggressor as long as these ties remained. By that he intended to win over Algiers to Britain against America, or at least convince Algiers to adopt a position of neutrality. Thus, the countries of Europe and the United States of America failed to ally against the countries of the Islamic Maghreb and Algiers in particular, and the matter so remained until the Napoleonic Wars ended in 1815. James Madison recommended that Congress declare the "existence of a state of war between the United States and the Dey and Regency of Algiers." While Congress did not formally declare a state of war, they did pass legislation, enacted on March 3, 1815, that authorized the president to use the U.S. Navy, "as judged requisite by the President" to protect the "commerce and seamen" of the United States on the "Atlantic Ocean, the Mediterranean and adjoining seas." Congress also authorized the president to grant the U.S. Navy the ability to seize all vessels and goods belonging to Algiers. The legislation also authorized the president to commission privateers for the same purpose. During the reign of the Dey Omar Pasha (1815-1817), American-Algerian relations worsened when the Dey began to demand an increase in the annual tribute. The Americans went to Algiers to fight under Commodore Stephen Decatur, which culminated in the Battle off Cape Gata and the death of the famous corsair captain Raïs Hamidou. A letter to the dey followed on April 12, 1815 informing him of America's decision to enter into war against him and giving him the choice between peace and war after reminding him of the horrors of war and the advantages of peace and understanding. In the year 1816, Dey Omar answered this letter and offered America the renewal of the previous treaty concluded during the reign of Hassan Pasha (1791-1798). Madison answered him on August 21 and asked him to resume negotiations. These were renewed and ended with a peace agreement in favor of America. The dey was forced to pay $10,000 in compensation and to renounce all that America had been paying him.

Effect in United States
When the United States military efforts of the early 19th century were successful against the pirates, partisans of the Democratic-Republicans contrasted their presidents' refusals to buy off the pirates by paying tribute with the failure of the preceding Federalist administration to suppress the piracy. The Federalist Party had adopted the slogan, "Millions for defense, but not one cent for tribute," but had failed to end the attacks on merchant ships. From 1796 to 1797 French raiders seized some 316 American merchant ships flying American colors. To counter this ongoing advent three frigates, USS United States (1797), USS Constitution and USS Constellation (1797), were built to answer the call for security.