Answer:
The Barbary Wars
The practice of state-supported piracy and ransoming of captives was not wholly unusual for its time. Many European states commissioned privateers to attack each others’ shipping and also participated in the transatlantic slave trade. The two major European powers, Great Britain and France, found it expedient to encourage the Barbary States’ policy and pay tribute to them, as it allowed their merchant shipping an increased share of the Mediterranean trade, and Barbary leaders chose not to challenge the superior British or French navies.Prior to independence, American colonists had enjoyed the protection of the British Navy. However, once the United States declared independence, British diplomats were quick to inform the Barbary States that U.S. ships were open to attack. In 1785, Dey Muhammad of Algiers declared war on the United States and captured several American ships. The financially troubled Confederation Government of the United States was unable to raise a navy or the tribute that would protect U.S. ships.
In contrast to the dispute with Algiers, U.S. negotiations with Morocco went well. Moroccan Sultan Sidi Muhammad had seized a U.S. merchant ship in 1784 after the United States had ignored diplomatic overtures. However, Muhammad ultimately followed a policy of peaceful trade, and the United States successfully concluded a treaty with Morocco in 1786. However, Congress was still unable to raise enough funds to satisfy the Dey of Algiers.
In an attempt to address the challenge posed by the Dey of Algiers, Thomas Jefferson, then U.S. Minister to France, attempted to build a coalition of weaker naval powers to defeat Algiers, but was unsuccessful. However, the Kingdom of Portugal was also at war with Algiers, and blocked Algerian ships from sailing past the Straits of Gibraltar. As a result, U.S. merchant ships in the Atlantic Ocean remained safe for a time and temporarily relieved the U.S. Government from the challenges posed by the Barbary States.In 1793 a brief Portuguese-Algerian truce exposed American merchant ships to capture, forcing the United States, which had thus far only managed to conclude a treaty with Morocco, to engage in negotiations with the other Barbary States. In 1795, The U.S. Government dispatched diplomats Joel Barlow, Joseph Donaldson, and Richard O’Brien to North Africa and successfully concluded treaties with the states of Algiers, Tunis, and Tripoli. Under the terms of these treaties, the United States agreed to pay tribute to these states. The treaty with Algiers freed 83 American sailors.The adoption of the Constitution in 1789 gave the U.S. Government the power to levy taxes and to raise and maintain armed forces, powers which had been lacking under the Articles of Confederation. In 1794, in response to Algerian seizures of American ships, Congress authorized construction of the first 6 ships of the U.S. Navy. In 1801, the Pasha of Tripoli, Yusuf Qaramanli, citing late payments of tribute, demanded additional tribute and declared war on the United States. The United States successfully defeated Qaramanli’s forces with a combined naval and land assault by the United States Marine Corps. The U.S. treaty with Tripoli concluded in 1805 included a ransom for American prisoners in Tripoli, but no provisions for tribute.In 1812, the new Dey of Algiers, Hajji Ali, rejected the American tribute negotiated in the 1795 treaty as insufficient and declared war on the United States. Algerian corsairs captured an American ship several weeks later. In accordance with an agreement between the Dey and British diplomats, the Algerian declaration was timed to coincide with the start of the War of 1812 between Britain and the United States. The war with Britain prevented the U.S. Government from either confronting Algerian forces or ransoming U.S. captives in Algiers. Once the Treaty of Ghent ended war with Britain, President James Madison requested that Congress declare war on Algiers, with Congress authorizing the use of force on March 3, 1815. The U.S. Navy, greatly increased in size after the War of 1812, was able send an entire squadron, led by Commodore Stephen Decatur, to the Mediterranean.When the U.S. naval expedition arrived in Algiers, a new ruler, Dey Omar, was in power. Omar wished to restore order after several years of political instability and was acutely aware that he could no longer count on British support against the Americans. Decatur had already defeated two Algerian warships and captured hundreds of prisoners of war, and was in a favorable position for negotiation.