Barbary War, Second
1815 CE
The Second Barbary War (also known as the Algerine or Algerian War) is the second of two wars fought between the United States of America and the Ottoman Empire's North African regencies of Algiers, Tripoli, and Tunis, known collectively as the Barbary States.
It brings to a conclusive end the American practice of paying tribute to the pirate states.
Related Events
Showing 4 events out of 4 total
North Africa (1684–1827 CE): Alaouite Morocco, Semi-Autonomous Regencies, and European Naval Pressure
Geographic & Environmental Context
The subregion of North Africa includes Morocco (with the Western Sahara), Algeria, Tunisia, and Libya. Anchors included the Atlas Mountains, the Tell plains, the Western Sahara caravan routes, the Saharan oases, and the Mediterranean ports of Algiers, Tunis, Tripoli, and Moroccan Atlantic harbors like Tangier and Essaouira. The region was divided between Morocco under the Alaouite dynasty and the three Ottoman regencies of Algiers, Tunis, and Tripoli, each increasingly autonomous.
Climate & Environmental Shifts
The later Little Ice Age brought recurring droughts and cold winters, reducing harvests and triggering famines. Grain shortages particularly affected Algeria and Morocco in the early 18th century, worsened by locust swarms. The Western Sahara’s nomads faced shrinking pastures, forcing conflict over wells and caravan routes. Coastal fisheries and piracy revenues often sustained port cities during agricultural crises.
Subsistence & Settlement
-
Morocco: Under Moulay Ismail (1672–1727), the Alaouites centralized authority, fortified Meknes, and secured southern frontiers into the Western Sahara. Agriculture revived through irrigation, and the port of Essaouira was built as a new Atlantic hub.
-
Algeria: The Regency of Algiers operated under Ottoman suzerainty but with de facto independence, ruled by deys. Urban life centered on Algiers, supported by cereal farming and pastoralism inland.
-
Tunisia: From 1705, the Husainid dynasty governed as hereditary beys, balancing agriculture and commerce with increasing European trade ties.
-
Libya: The Karamanli dynasty (1711–1835) established in Tripoli maintained autonomy, combining corsairing with trade in grain and slaves.
-
Western Sahara: Nomadic Sanhaja and Maqil tribes maintained pastoral lifeways and salt-gold trade, though trans-Saharan caravans were in long decline compared to Atlantic shipping.
Technology & Material Culture
Corsair fleets deployed galleys, frigates, and armed xebecs. Fortified kasbahs and citadels rose in Algiers, Tunis, and Meknes. Moroccan architecture flourished in Meknes with monumental stables, aqueducts, and palaces. Urban guilds crafted textiles, ceramics, and leatherwork. Saharan nomads sustained material culture around camel herding, tents, and oral poetry. Firearms spread widely, reshaping tribal warfare.
Movement & Interaction Corridors
-
Corsair networks: Algiers, Tunis, and Tripoli remained centers of Mediterranean piracy, exacting tribute from European powers.
-
Western Sahara routes: Still carried salt, gum, and slaves north, though diminished.
-
Moroccan ports: Linked with Britain, France, and the Netherlands for grain, wool, and leather exports.
-
European navies: Increasingly challenged corsair fleets, with bombardments of Algiers (1816) and growing Anglo-American pressure during the Barbary Wars (1801–1815).
Cultural & Symbolic Expressions
Islamic scholarship thrived in Fez and Tunis; Sufi brotherhoods expanded, binding tribal societies through ritual and pilgrimage. Alaouite legitimacy in Morocco rested on claims of sharifian descent and monumental building. Oral epics and poetry glorified corsair captains and tribal heroes. In European imagination, North Africa symbolized both piracy and exoticism, recorded in captive memoirs and diplomatic reports.
Environmental Adaptation & Resilience
Rural communities intercropped cereals and legumes, supplemented diets with olives and figs, and relied on Sufi zawiyas for famine relief. Nomads shifted grazing routes deeper into the Sahara during drought. Urban populations survived shortages through grain imports and piracy revenues. Moroccan rulers redistributed grain from coastal ports to famine-stricken hinterlands.
Transition
By 1827 CE, North Africa stood at a threshold. Morocco preserved independence under the Alaouites but faced mounting European trade and military pressure. Algiers, Tunis, and Tripoli operated as semi-autonomous Ottoman regencies, balancing corsairing with tribute diplomacy. The Western Sahara remained tied to Morocco but increasingly marginal in global trade. The bombardment of Algiers by Britain in 1816 and U.S. naval campaigns signaled a new era: European powers were preparing to impose direct colonial rule, beginning with France’s invasion of Algeria in 1830.
In March of this year, in what becomes the Second Barbary War, the United States Congress authorizes naval action against the Barbary States, the then-independent Muslim states of Morocco, Algiers, Tunis, and Tripoli.
Commodore Stephen Decatur is dispatched with a squadron of ten warships to ensure the safety of United States shipping in the Mediterranean and to force an end to the payment of tribute.
After capturing several corsairs and their crews, Decatur sails into the harbor of Algiers, threatens the city with his guns, and concludes a favorable treaty in which the dey agrees to discontinue demands for tribute, pay reparations for damage to United States property, release United States prisoners without ransom, and prohibit further interference with United States trade by Algerian corsairs.
No sooner has Decatur set off for Tunis to enforce a similar agreement than the dey repudiates the treaty.
The next year, an Anglo-Dutch fleet, commanded by British admiral Viscount Exmouth, delivers a nine-hour bombardment of Algiers.
The attack immobilizes many of the dey's corsairs and obtains from him a second treaty that reaffirms the conditions imposed by Decatur.
In addition, the dey agrees to end the practice of enslaving Christians.
The European powers, in the years immediately after the Napoleonic wars, which end in 1815, force an end to piracy and the payment of tribute in the Barbary states.
Deprived of the basis of its economy, Tripoli is unable to pay for basic imports or to service its foreign debt.
When France and Britain pres for payment of debts on behalf of Tripoli's creditors, the Divan authorizes extraordinary taxes to provide the needed revenue.
The imposition of the taxes provokes an outcry in the towns and among the tribes that quickly degenerates into civil war.
Born on the island of Lesbos to a Turkish family as Omar ben Mohammed, he had left for Algiers at an unknown date, and first became a privateer, then a janissary. He soon became Agha of the Odjak of Algiers, the local corps of the janissary militia in the Regency of Algiers.
In an episode known as the Second Barbary War, an expedition of the US Navy led by Commodore Stephen Decatur in command of a squadron of nine ships is conducted in 1815 against the Regency of Algiers. The operation forces Dey Omar to sign a treaty ending attacks of piracy, a treaty that he will later denounce.