Sons of Liberty Museum: website header
Sons of Liberty Museum: mobile website header

Notice: Ads help support our website operation, if you would like to turn them OFF for this visit;


Marines Aboard Ships: The Barbary Wars

A Historical Essay on America's First Overseas Wars

Covering the Period 1801–1815

INTRODUCTION

In the opening decades of the nineteenth century, the young United States of America confronted its first sustained military crisis beyond the borders of the continent — a series of conflicts with the Barbary States of North Africa that would test the resolve of the new republic, define its foreign policy, and forge the identities of two of its most enduring military institutions: the United States Navy and the United States Marine Corps. The Barbary Wars, fought in two distinct campaigns between 1801 and 1815, were not merely naval skirmishes on a distant sea. They were the crucible in which American sea power was tempered, the occasion on which American Marines first gained immortal renown on foreign shores, and the political battleground on which American presidents — most notably Thomas Jefferson — wrestled with timeless questions about the use of force, national honor, and the constitutional prerogatives of war. This essay examines the causes, context, principal actors, military operations, and lasting significance of the Barbary Wars, with particular attention to the role of the Navy and the Marine Corps as they found their identities in the turbulent waters of the Mediterranean.

SECTION I: ORIGINS AND CAUSES OF THE BARBARY WARS

The Barbary Coast and Its States

The term 'Barbary Coast' referred to the coastal regions of North Africa stretching roughly from Morocco in the west to Tripolitania (modern Libya) in the east. During the period of the Barbary Wars, this region encompassed four principal political entities: the Sultanate of Morocco, the Regency of Algiers, the Regency of Tunis, and the Regency of Tripoli. The latter three were nominally subject to the Ottoman Empire, though in practice they operated with considerable autonomy under their own rulers — the Dey of Algiers, the Bey of Tunis, and the Pasha (or Bashaw) of Tripoli. Morocco, under its sultan, was an independent sovereign state.

Whether these entities constituted 'nation states' in the modern sense is a matter of some historical nuance. They possessed sovereign territories, standing governments, and the capacity to make war and peace, but their political structures were more closely akin to dynastic city-states or tributary principalities than to the emerging concept of the nation-state as understood in post-Westphalian Europe. Their economies were substantially dependent on maritime trade, but more critically — and infamously — upon the practice of piracy and the extortion of tribute from foreign powers in exchange for safe passage through the Mediterranean.

The Practice of Tribute and the Piracy System

For centuries, the Barbary States had operated a lucrative system of licensed piracy and state-sanctioned extortion. Their corsairs — swift, well-armed vessels crewed by seasoned sailors — preyed upon the merchant shipping of European nations and, increasingly, of the young United States. Captured vessels were seized, their cargoes confiscated, and their crews held for ransom or sold into slavery. European powers — including Great Britain, France, Spain, Portugal, and the Netherlands — had long found it cheaper and more expedient to pay annual tributes to the Barbary rulers than to maintain permanent naval forces in the Mediterranean sufficient to suppress the corsairs.

When American merchant vessels had sailed under the British flag prior to independence, they were protected — however imperfectly — by British treaty arrangements with the Barbary States. Independence severed that protection. Almost immediately, American ships became targets. In 1785, Algerian corsairs captured two American vessels, the Dauphin and the Maria, and enslaved their crews. The Continental Congress, lacking both a navy and sufficient treasury, was powerless to respond effectively.

The Tribute System Under the Early Republic

The administration of President George Washington and Congress eventually concluded humiliating tribute agreements. The Treaty of Algiers of 1795 committed the United States to an initial payment of approximately $800,000 — a staggering sum representing roughly one-sixth of the federal government's entire annual budget — plus annual tribute thereafter in naval stores and cash. Similar arrangements were made with Tunis and Tripoli. By 1800, the United States was paying an estimated $1 million per year in tribute to the Barbary States, an arrangement that bred deep resentment among American statesmen, merchants, and naval officers alike.

It was within this context of national humiliation, the strangling of American commerce, and a growing conviction that no self-respecting republic could purchase its security from pirates, that the stage was set for America's first wars of choice beyond its own shores.

The Religious and Political Character of the Barbary States

The Barbary States were predominantly Islamic societies governed according to varying combinations of Ottoman administrative tradition, tribal custom, and Islamic law. The rulers of Algiers, Tunis, and Tripoli derived their legitimacy from a combination of military power, Ottoman patronage, and religious sanction. While their motivation in preying upon foreign shipping was primarily economic and political rather than religious, contemporaries on both sides often framed the conflict in religious terms — Christian nations versus Muslim pirates — a framing that, while not entirely without foundation, obscures the primarily mercenary and geopolitical nature of the Barbary system.  Yet, their treatment of captured merchants was a clear expression of their ideological beliefs.

The Pasha of Tripoli during the First Barbary War was Yusuf Karamanli, who had seized power in 1795 by overthrowing his own brother, Hamet Karamanli, whom he exiled. Yusuf was a calculating and ambitious ruler who sought to maximize his revenues from tribute and piracy. The Dey of Algiers, Bobba Mustapha and later Hadji Ali, similarly governed through a combination of military force, patronage, and ruthless pragmatism. These were not ideologically driven states in the modern sense but rather predatory political organisms whose survival depended upon a steady income from maritime extortion.

SECTION II: TIME PERIOD AND THE BELLIGERENTS

Chronological Overview

The Barbary Wars unfolded in two distinct phases separated by nearly a decade of uneasy peace. The First Barbary War lasted from 1801 to 1805, pitting the United States primarily against the Regency of Tripoli, with secondary involvement by Morocco and the tacit concern of Algiers and Tunis. The Second Barbary War, sometimes called the Algerine War, took place in the summer of 1815, when the United States — freshly emerged from the War of 1812 — turned its strengthened Navy against the Dey of Algiers, who had seized American vessels and enslaved American sailors during the years of American preoccupation with Britain.

The United States as Belligerent

The United States in 1801 was a republic barely fifteen years old, still finding its footing in the world of nations. Its population was approximately five million souls, overwhelmingly rural and concentrated along the Atlantic seaboard. Its economy depended heavily upon maritime commerce — the export of tobacco, cotton, naval stores, and foodstuffs to European markets. The disruption of that commerce by Barbary pirates was therefore not merely a matter of national pride but of economic survival for countless American merchants, sailors, and their families.

The American government of 1801 operated under the Constitution ratified in 1789, with its careful separation of powers between the executive, legislative, and judicial branches. The question of who possessed the authority to initiate hostilities against foreign powers — the President alone, acting in his capacity as commander-in-chief, or Congress, which held the formal power to declare war — was already a matter of intense controversy, and the Barbary Wars would sharpen that debate considerably.

Tripoli, Morocco, Algiers, and Tunis

Tripoli, under Yusuf Karamanli, was the principal adversary in the First Barbary War. In May 1801, Yusuf cut down the flagpole in front of the American consulate in Tripoli — the traditional signal of a declaration of war — having calculated that the new Jefferson administration would prove no more willing to fight than its predecessors had been. He miscalculated profoundly. Morocco, under Sultan Suleiman, initially harassed American shipping but was quickly brought to heel when Commodore Edward Preble appeared off the Moroccan coast with a powerful naval squadron in 1803, prompting the sultan to renew his treaty with the United States. Algiers and Tunis remained hostile but quiescent during the First Barbary War, watching events carefully. Algiers became the principal target of the Second Barbary War under Dey Omar Agha, who had declared war on the United States in 1812.

 

SECTION III: NATIONAL DEFENSE — THE ADVENT OF THE NAVY AND MARINE CORPS

The National Defense Question

At the dawn of the nineteenth century, the United States faced a fundamental question about its national defense that resonates through American history to the present day: Should the republic maintain a large standing military force capable of projecting power abroad, or should it rely on citizen-militias and a minimal professional force, consistent with republican values and the fear of military tyranny? The Founding Fathers were almost universally suspicious of standing armies, associating them with the monarchical tyranny from which they had so recently escaped. Yet the Barbary crisis illustrated with brutal clarity the cost of military impotence.

The navy question was particularly acute. Ships were enormously expensive to build, maintain, and man. Yet without a navy, American commerce on the high seas was unprotected. An intense debate had been raging in government and industrial circles since the 1780s. Alexander Hamilton and the Federalists generally favored a strong navy as an instrument of national power and commercial protection. Thomas Jefferson and the Democratic-Republicans had traditionally opposed large naval expenditures as expensive, dangerous, and contrary to republican simplicity. Jefferson's eventual decision to deploy naval force against Tripoli thus represented a significant evolution in his thinking — or, some would argue, a classic case of the responsibilities of office tempering the idealism of opposition.

The Establishment of the U.S. Navy

The Continental Navy, created in 1775 to harass British shipping during the Revolution, was disbanded after the war. The new Constitution gave Congress the power to 'provide and maintain a Navy,' but it was not until the Naval Act of March 27, 1794, that Congress authorized the construction of six frigates. The immediate catalyst was not the Barbary threat per se, but rather a peace treaty between Algiers and Portugal that suddenly opened the Atlantic to Algerian corsairs, which had previously been bottled up in the Mediterranean.

The act authorized the construction of six frigates: the United States (44 guns), the Constitution (44 guns), the Constellation (36 guns), the Congress (36 guns), the Chesapeake (36 guns), and the President (44 guns). The outbreak of an undeclared naval war with France (the Quasi-War, 1798–1800) accelerated naval construction and prompted Congress to establish the Department of the Navy on April 30, 1798, separate from the Department of War under which naval affairs had previously fallen. The Navy Department was thus barely three years old when Jefferson dispatched the first American ‘fleet’ to the Mediterranean.

Secretary of the Navy

The first Secretary of the Navy was Benjamin Stoddert of Maryland, appointed by President John Adams on May 21, 1798. Stoddert served until March 1801, overseeing the Navy during the Quasi-War with France and establishing the administrative foundations of the new department. Upon Jefferson's inauguration, Robert Smith of Maryland was appointed Secretary of the Navy, serving from July 27, 1801 until March 7, 1809 — encompassing the entirety of the First Barbary War. Smith was a capable administrator who supported the Mediterranean operations, though his relations with Jefferson's cabinet were sometimes strained. During the Second Barbary War of 1815, Benjamin Crowninshield of Massachusetts served as Secretary of the Navy under President James Madison.

The Secretary of War during the Jefferson administration was Henry Dearborn of Massachusetts, who served from March 5, 1801 to March 7, 1809. Dearborn's portfolio encompassed the Army and the relatively new Marine Corps, though the Marines served extensively at sea under Navy operational command.

The United States Marine Corps

The Marine Corps traces its origins to November 10, 1775, when the Second Continental Congress authorized the raising of two battalions of Marines for service aboard Continental Navy vessels. The Continental Marines were disbanded after the Revolution, but the exigencies of the Quasi-War with France prompted Congress to re-establish the Corps under the Act of July 11, 1798, which created the United States Marine Corps as a distinct military branch. The act specified that Marines would serve aboard Navy vessels and at naval stations, subject to the rules and articles of war and to naval regulations when embarked.

The Commandant of the Marine Corps during the First Barbary War was Lieutenant Colonel Commandant William Ward Burrows, who had been appointed in 1798 and served until his death in 1805. He was succeeded by Lieutenant Colonel Commandant Franklin Wharton, who served from 1804 to 1820. The Marine Corps in this period was a small force — numbering perhaps 500 to 1,000 officers and men — but it was developing its distinctive ethos of service both afloat and ashore, a tradition that the Barbary Wars would powerfully reinforce.

Marines embarked on Navy vessels served in multiple capacities: as sharpshooters stationed in the fighting tops to pick off enemy officers and gun crews during engagements; as the crew of the great guns in battle when numbers required; as a disciplinary force to maintain order among the often-turbulent enlisted sailors; and as the primary landing force when operations ashore were required. The Marines' role in close-quarters combat, their ability to serve effectively both at sea and on land, and their tradition of maintaining a higher standard of discipline and deportment than the average naval rating made them indispensable to any ambitious Mediterranean expedition.

The Commanding Officers of Navy squadrons during the Barbary Wars held the rank of Commodore — a courtesy title applied to the senior captain commanding a squadron, not yet a permanent commissioned rank in the U.S. Navy. These men were the direct predecessors of the modern admiral, and their conduct of operations in the Mediterranean established precedents of American naval behavior that would endure for generations.

SECTION IV: THE ROLE OF PRESIDENT THOMAS JEFFERSON

Jefferson's Dilemma: Principle vs. Necessity

Thomas Jefferson had long regarded the tribute system with contempt. As Minister to France from 1784 to 1789, he had watched with frustrated indignation as American sailors were enslaved by Algerian corsairs and the fledgling republic was powerless to respond. He had argued then for a coalition of European powers to suppress the Barbary pirates by force, writing in 1786 that 'it will be more easy to raise ships and money to fight these pirates into reason, than money to bribe them.' Yet as the leading philosophical spokesman for limited government, republican simplicity, and minimal military expenditure, Jefferson faced a profound tension between his principles and the demands of national security.

His inauguration as the third President of the United States on March 4, 1801, coincided almost exactly with Yusuf Karamanli's declaration of war against the United States in May of that year. Jefferson responded with a decision that would define his presidency's early months and establish enduring precedents for executive power: he dispatched a naval squadron to the Mediterranean without a formal declaration of war from Congress. Jefferson's constitutional reasoning was careful if somewhat tortured. He maintained that the President possessed the authority to act defensively against an aggressor and to protect American commerce. 

Jefferson's Strategic Vision

Jefferson's decision to use force rather than continue paying tribute reflected a genuinely strategic calculation as well as a matter of national honor. He recognized that the tribute system was, in effect, an endless subsidy to predatory states, which used the income to maintain the very corsair fleets that threatened American shipping. Force, if applied decisively, might permanently reduce or eliminate the threat at a one-time cost, while tribute merely perpetuated it at recurring expense. He also understood that a young republic that could not defend its sailors and its commerce would never command the respect of the established European powers.

Jefferson's approach was not, however, without its critics at home. Federalists complained that he was pursuing the war too cheaply, relying on a rotating deployment of small squadrons rather than assembling a truly overwhelming force that could end the matter quickly. They were partly right: the initial squadron commanders, Commodores Richard Dale and Richard Morris, were hamstrung by restrictive rules of engagement and insufficient resources. It was not until Commodore Edward Preble arrived in the Mediterranean in 1803 with a more aggressive mandate and a capable squadron that American operations began to achieve meaningful results.

Jefferson also worked diplomatically in parallel with military pressure. He authorized his consul in Tunis and later in Tripoli to negotiate, and he famously sanctioned the unconventional scheme hatched by former consul William Eaton to overthrow Yusuf Karamanli by supporting his exiled brother Hamet in a land campaign across the Libyan desert — one of the most audacious covert operations in American history.

SECTION V: KEY EVENTS — THE FIRST BARBARY WAR (1801–1805)

Deployment of the First Squadron, 1801

Commodore Richard Dale was appointed to command the first American squadron dispatched to the Mediterranean. His force consisted of the frigates President (44 guns, flagship), Philadelphia (38 guns), Essex (32 guns), and the schooner Enterprise (12 guns). Dale sailed from Hampton Roads, Virginia, in June 1801 with orders that reflected Jefferson's constitutional caution: he was authorized to defend American vessels and show the flag, but his rules of engagement regarding offensive action were ambiguous and restricting.

On August 1, 1801, the schooner Enterprise, commanded by Lieutenant Andrew Sterrett, encountered the Tripolitan polacca Tripoli (14 guns) off the coast of Malta. After a sharp engagement of approximately three hours, in which the Enterprise suffered no casualties while the Tripoli lost 50 killed and wounded, the Tripolitan vessel was captured — only for Sterrett, operating under Dale's restrictive orders, to be compelled to release the prize after throwing her guns overboard. The incident illustrated the absurdity of the existing rules of engagement and prompted Jefferson to seek and eventually obtain more permissive congressional authorization for offensive operations.

Commodore Richard Morris and the Second Squadron, 1802–1803

Commodore Richard Valentine Morris commanded the second American squadron in the Mediterranean from 1802 to 1803, a period marked by frustration and controversy. Morris's squadron included the frigates Chesapeake (flagship), Constellation, Adams, John Adams, and New York, plus the schooner Enterprise. Despite having a substantial force, Morris conducted the campaign with a remarkable lack of energy and aggressiveness, spending considerable time in European ports and failing to maintain an effective blockade of Tripoli. He was recalled in 1803, court-martialed, and cashiered from the Navy — a significant act of accountability that demonstrated Jefferson's determination to pursue the war with genuine vigor.

Commodore Edward Preble and the Third Squadron, 1803–1804

The appointment of Commodore Edward Preble of Maine to command the third Mediterranean squadron marked a turning point in the war. Preble was a hard-driving, aggressive commander of the old school — fiercely demanding of his officers and men, intolerant of hesitation, and possessed of a strategic imagination that his predecessors had lacked. His squadron included the heavy frigate Constitution (44 guns, flagship), the frigate Philadelphia (38 guns), the brigs Argus and Siren, and the schooners Vixen, Nautilus, and Enterprise. Several of the junior officers who served under Preble would become the greatest naval commanders of the next generation, including Stephen Decatur, Charles Stewart, Isaac Hull, and William Bainbridge — a cohort known to history as 'Preble's Boys.'

The Loss of USS Philadelphia — October 31, 1803

On October 31, 1803, the USS Philadelphia, commanded by Captain William Bainbridge, was pursuing a Tripolitan corsair when she ran aground on an uncharted reef in the harbor of Tripoli. Despite desperate efforts to free her — including jettisoning her guns, anchors, and stores — she remained fast. Bainbridge was compelled to surrender his vessel and his crew of approximately 307 officers and men to the Tripolitans, who successfully refloated the frigate and brought her into the harbor as a prize. The loss of the Philadelphia, with her crew imprisoned in Tripoli and the frigate herself potentially available to augment the Tripolitan fleet, was the greatest American naval disaster to that date.

The Burning of USS Philadelphia — February 16, 1804

Rather than permit the Philadelphia to be used against American forces, Preble conceived a plan to destroy her in the harbor of Tripoli itself. He assigned the mission to Lieutenant Stephen Decatur Jr., commanding the ketch Intrepid, with a volunteer crew of approximately 74 officers and men, including Marine Lieutenant Jonathon Thorn. On the night of February 16, 1804, Decatur and his men, disguised as Maltese sailors, sailed the Intrepid alongside the Philadelphia under the pretense of having lost their anchor. Once alongside, they boarded the Philadelphia, overcame her Tripolitan guard in fierce hand-to-hand combat, and set her ablaze with combustibles they had carried aboard. The entire operation lasted approximately twenty minutes. Decatur's crew escaped without losing a man, though several were wounded. The burning Philadelphia illuminated the harbor of Tripoli with spectacular flames as the Intrepid pulled away. British Admiral Lord Horatio Nelson, then in the Mediterranean commanding operations against Napoleon, reportedly called it 'the most bold and daring act of the age.' Decatur was promoted to Captain, becoming at age 25 the youngest man in American history to hold that rank.

Marines who participated included members of the Intrepid's crew serving under Decatur. The action exemplified the amphibious capability that characterized Marine service — the willingness and ability to fight effectively in close quarters whether at sea or on shore.

The Bombardment of Tripoli — August–September 1804

Between August 3 and September 4, 1804, Preble's squadron conducted five separate bombardments of the city and harbor of Tripoli, supplemented by multiple attacks by gunboats and bomb vessels. These operations were fierce and costly. On August 3, in the first bombardment, nine American gunboats engaged the Tripolitan gunboat flotilla in close action. Lieutenant Stephen Decatur Jr. led an attack that destroyed one Tripolitan gunboat and captured two others, boarding the enemy vessels in brutal hand-to-hand combat. During this fighting, Decatur's brother, Lieutenant James Decatur, was treacherously shot dead after accepting the surrender of a Tripolitan captain. Stephen Decatur subsequently boarded the vessel responsible, killed the Tripolitan officer in a famous personal combat in which Decatur saved his own life by deflecting a sword thrust with his forearm.

The bombardments damaged Tripoli significantly but did not compel Yusuf Karamanli to accept American terms. Preble was replaced in September 1804 by Commodore Samuel Barron, who arrived with a larger squadron — including the heavy frigates President, Constellation, Congress, and Essex — and fresh instructions authorizing more aggressive and unconventional operations.

The Ketch Intrepid — September 4, 1804

In a final desperate gambit, Preble proposed converting the ketch Intrepid into a floating bomb — loading her with gunpowder and explosives — and sailing her into the harbor of Tripoli to destroy the Tripolitan fleet at anchor. Master Commandant Richard Somers volunteered to command the mission, with Lieutenants Henry Wadsworth and Joseph Israel also aboard. On the night of September 4, 1804, the Intrepid entered Tripoli harbor but exploded prematurely before reaching the target, killing all thirteen men aboard instantly. Whether the explosion was triggered by enemy fire, accident, or deliberate self-destruction to prevent capture was never established. Somers and his men were hailed as martyrs by a grieving nation.

The Eaton Expedition — The Shores of Tripoli, 1804–1805

The most remarkable episode of the First Barbary War was conceived not by a naval officer but by a former U.S. consul and Army officer of extraordinary audacity: William Eaton of Connecticut, who had served as Consul at Tunis from 1797 to 1803. Eaton proposed to resolve the Tripolitan war by a stratagem: overthrow Yusuf Karamanli by supporting his exiled brother Hamet, who had a legitimate claim to the Tripolitan throne, in a land campaign that would attack Tripoli from the desert side while the American squadron blockaded it from the sea.

Jefferson and Secretary of State James Madison authorized Eaton to explore the scheme, though the State Department remained ambivalent throughout. Armed with modest financial support, naval logistical backing, and sheer personal force of will, Eaton located Hamet Karamanli in Egypt and, with the cooperation of Commodore Samuel Barron, assembled a bizarre but effective force: Hamet's handful of supporters, Arab cavalry, Greek mercenaries, and a contingent of United States Marines under Lieutenant Presley Neville O'Bannon, together with Marine Private David Thomas and six fellow Marines. The total force initially numbered approximately 400 men, though it fluctuated throughout the campaign.

The March Across the Desert — March–April 1805

Beginning in late February 1805 from Alexandria, Egypt, Eaton led his heterogeneous force on one of the most remarkable overland marches in early American military history. The route crossed approximately 500 miles of Libyan desert, skirting the Gulf of Sirte, under conditions of extreme hardship — burning heat by day, bitter cold by night, constant shortage of food and water, and recurring threats of mutiny from the Arab mercenaries, who demanded additional payment and at several points refused to advance. Eaton's iron determination and the steadiness of O'Bannon's Marines held the force together through repeated crises.

On April 25, 1805, Eaton's force reached the outskirts of Derna (also spelled Derné), a fortified coastal town defended by a garrison of approximately 800 men under Governor Hassan Bey, reinforced by troops sent by Yusuf Karamanli. Eaton demanded the town's surrender. Hassan Bey responded with characteristic defiance: 'My head or yours.'

The Battle of Derna — April 27, 1805

The Battle of Derna, fought on April 27, 1805, was the first pitched battle fought by United States forces on foreign soil and the first land battle in which the Marine Corps gained lasting distinction. Eaton's plan called for a coordinated assault: the naval vessels Nautilus (Lt. Commander John H. Dent), Hornet (Master Commandant Samuel Evans), and Argus (Master Commandant Isaac Hull) would bombard the harbor fortifications, while Eaton led a direct frontal assault on the town. The Arab cavalry, commanded by Hamet, would attack from the right flank.

At approximately 2:00 in the afternoon on April 27, Eaton ordered the assault. The three naval vessels opened fire on the harbor fort. Eaton himself led the charge against the fortifications, sword in hand, with Lieutenant O'Bannon and the Marines advancing directly into withering fire from the fort's defenders. Eaton was shot through the left wrist during the assault but continued to advance. The Marines and Greek mercenaries, fighting with bayonets and in close quarters, stormed the harbor fort and breached the defenses. Lieutenant O'Bannon and his Marines then hauled down the Tripolitan flag from the fort's ramparts and raised the Stars and Stripes in its place — the first time in history that the American flag was raised in victory on the soil of the Old World.

The fighting was intense. Three Americans — one Marine and two naval officers — were killed. Eaton was seriously wounded. Several Marines were wounded in the assault. Hamet's cavalry secured the right flank. By late afternoon, Derna was in American hands.

The phrase 'to the shores of Tripoli' in the Marines' Hymn directly commemorates this action. The episode became foundational to Marine Corps identity and self-conception — the embodiment of the Corps' tradition of fighting wherever ordered, whether ashore or afloat, against any enemy, under any conditions.

Treaty of Peace with Tripoli — June 4, 1805

The fall of Derna, combined with the naval blockade of Tripoli, brought Yusuf Karamanli to the negotiating table. Commodore John Rodgers, who had succeeded Samuel Barron in command of the American squadron, and Tobias Lear, the American consul general, negotiated a peace treaty signed on June 4, 1805. The terms were imperfect and remain controversial to this day: the United States agreed to pay a ransom of $60,000 for the release of Captain Bainbridge and the crew of the Philadelphia — a compromise that many Americans, including Eaton, found shameful and inconsistent with the military position the country had achieved. Yusuf relinquished his demands for annual tribute and released the Philadelphia's crew. American commerce was to be protected in Tripolitan waters.

Eaton was furious at the treaty terms, regarding the ransom payment as a capitulation that squandered the military advantage he and O'Bannon had won at such cost. His view has been echoed by many subsequent historians, though others have argued that a satisfactory peace at modest cost was a reasonable outcome given the difficulties of supply and the long distance from home. Hamet Karamanli was evacuated from Derna by American naval vessels — a betrayal of the man who had risked everything on American promises — and lived out his days in exile.

SECTION VI: THE SECOND BARBARY WAR (1815)

Background: Algiers Declares War, 1812

The War of 1812 with Britain occupied American attention and resources from June 1812 to February 1815, providing the Barbary States — and particularly Algiers — with a convenient opportunity to resume their predatory activities against American shipping. The Dey of Algiers, Omar Agha, declared war on the United States in 1812 and seized American vessels and enslaved American sailors. The Madison administration, consumed by the war with Britain, was powerless to respond immediately. The Treaty of Ghent ending the War of 1812 was signed in December 1814, and within weeks Congress authorized naval action against Algiers.

Decatur's Squadron, 1815

Commodore Stephen Decatur — the hero of the Philadelphia burning and Tripoli harbor — was given command of the American force assembled to compel Algiers to terms. His squadron was one of the most powerful yet dispatched from American shores: the frigates Guerriere (44 guns, flagship), Constellation (36 guns), and Macedonian (38 guns), plus the sloops of war Epervier and Ontario, the brigs Firefly, Flambeau, Spark, and Torch, and the schooners Spitfire and Torch. Commodore William Bainbridge commanded a second, reinforcing squadron.

The Battle of Cape Gata — June 17, 1815

On June 17, 1815, Decatur's squadron intercepted and engaged the Algerian flagship, the heavy frigate Meshuda (46 guns), off Cape Gata on the Spanish coast. In a running battle, American gunnery rapidly overwhelmed the Algerian vessel, killing her admiral, Rais Hammida — one of the most feared corsair commanders in the Mediterranean — at the outset of the action. The Meshuda was captured after a brief but sharp engagement. Algerian casualties were estimated at 30 killed and 406 captured.

The Action off Cape Palos — June 19, 1815

Two days later, on June 19, 1815, the American brig Epervier captured the Algerian brig Estedio (22 guns) off Cape Palos after a short engagement, taking 80 prisoners.

The Treaty with Algiers — June 30, 1815

Decatur arrived before the harbor of Algiers with his victorious squadron on June 28, 1815. The Dey of Algiers, faced with the destruction of two of his finest warships, the loss of his best admiral, and the sight of a powerful American squadron in his harbor, had little choice but to negotiate. Decatur drove a hard bargain: the Dey agreed to release all American prisoners without ransom, to pay an indemnity of $10,000 for American property seized, to cease demanding tribute from the United States in perpetuity, and to treat American vessels as those of a most favored nation. The treaty was signed on June 30, 1815 — a complete and unambiguous American victory achieved in under two weeks. Decatur then visited Tunis and Tripoli in turn, exacting compensation and renewed agreements from their rulers, completing what Jefferson had begun fourteen years earlier.

The Second Barbary War effectively ended the Barbary threat to American commerce. The Barbary States, their naval power broken and their political system already fraying, never again seriously threatened American shipping. The destruction of Algerian naval power was completed by a combined British-Dutch naval bombardment of Algiers in 1816 — the Battle of Algiers — and the final extinction of Barbary piracy was accomplished by the French conquest of Algeria in 1830.

SECTION VII: KEY COMMANDERS AND UNITS

American Naval Commanders

Commodore Richard Dale (1756–1826): Commanded the first American squadron in the Mediterranean, 1801. A veteran of the Revolutionary War who had served as first lieutenant under John Paul Jones aboard the Bonhomme Richard. His squadron included the frigates President, Philadelphia, and Essex.

Commodore Richard Valentine Morris (1768–1815): Commanded the second Mediterranean squadron, 1802–1803. Recalled and cashiered for ineffective performance, he became the cautionary example of what the Barbary War's command demanded.

Commodore Edward Preble (1761–1807): The most consequential American commander of the First Barbary War. A severe, demanding officer of the New England school, Preble organized, trained, and motivated the officers and men who became 'Preble's Boys' — the future leaders of the American Navy. He commanded the Constitution and directed operations from 1803 to 1804, including the five bombardments of Tripoli.

Commodore Samuel Barron (1765–1810): Succeeded Preble in command of the Mediterranean squadron in 1804, bringing a larger force and supporting the Eaton-Derna expedition logistically.

Commodore John Rodgers (1773–1838): Commanded the Mediterranean squadron at the war's conclusion, negotiating the Treaty of Peace with Tripoli in 1805.

Commodore Stephen Decatur Jr. (1779–1820): The most celebrated American naval hero of his generation. His burning of the Philadelphia in 1804, his hand-to-hand combat in Tripoli harbor, and his decisive victory in the Second Barbary War made him the embodiment of American naval valor. He was killed in a duel with Commodore James Barron in 1820.

Commodore William Bainbridge (1774–1833): Captain of the USS Philadelphia at its loss in 1803, imprisoned in Tripoli for nineteen months, later commanded the Constitution in the War of 1812.

Marine Corps Officers

Lieutenant Presley Neville O'Bannon (1776–1850): The hero of Derna. O'Bannon commanded the small Marine contingent in Eaton's overland expedition, leading the charge at Derna on April 27, 1805. He resigned from the Marine Corps in 1807 and later served in the Kentucky state legislature. The Mameluke sword traditionally carried by Marine officers to this day is attributed to a gift made by Hamet Karamanli to O'Bannon in recognition of his service.

Lieutenant Jonathan Thorn: Marine officer aboard the ketch Intrepid during the burning of the Philadelphia, February 16, 1804.

American Civilian Leaders

William Eaton (1764–1811): Former U.S. Army officer and consul at Tunis, architect and commander of the overland expedition to Derna. One of the most extraordinary American adventurers of his era.

Tobias Lear (1762–1816): Consul General to the Barbary States and principal American diplomatic negotiator, who concluded the Treaty of Peace with Tripoli in 1805.

Navy Ships and Units of Note

USS Constitution (44 guns): Commodore Preble's flagship and the most celebrated American warship of the era, nicknamed 'Old Ironsides' after her demonstrated invulnerability during the War of 1812. Constitution remains in commission in the U.S. Navy to this day, moored at the Charlestown Navy Yard in Boston — the oldest commissioned warship afloat in the world.

USS Philadelphia (38 guns): Lost on October 31, 1803; burned February 16, 1804.

USS Enterprise (12–14 guns): Schooner active throughout both Barbary Wars.

USS Intrepid: Ketch, used in the burning of Philadelphia (1804) and the fireship mission (September 1804).

USS Argus (18 guns): Brig. Participated in the Derna bombardments and transported William Eaton and Hamet Karamanli's forces.

USS Nautilus and USS Hornet: Participated in the naval bombardment at Derna, April 27, 1805.

USS Guerriere (44 guns): Flagship of Decatur's squadron in the Second Barbary War, 1815.

SECTION VIII: OUTCOMES AND SIGNIFICANCE

Military and Diplomatic Outcomes

The First Barbary War ended with the Treaty of Peace with Tripoli (June 4, 1805), which secured the release of Captain Bainbridge and the crew of the Philadelphia at the cost of a $60,000 ransom, abolished Tripolitan demands for annual tribute, and established American commercial rights in Tripolitan waters. Morocco had been brought to terms by Preble's show of force in 1803, and Tunis and Algiers, though not participants in the war, had been deterred from direct conflict by the presence of American naval power in the Mediterranean. The Second Barbary War of 1815 achieved comprehensively what the first had imperfectly accomplished: the total cessation of Barbary tribute demands and piracy directed at American commerce.

The Forging of American Naval Power

The Barbary Wars were the crucible of American naval professionalism. The generation of officers who served under Edward Preble — Decatur, Bainbridge, Hull, Stewart, Rodgers, Lawrence — went on to command American forces in the War of 1812 and beyond, bringing with them the standards of gunnery, seamanship, and aggressive initiative that Preble had instilled. The war demonstrated that American frigates and their crews could match any navy in the world in individual ship-to-ship combat, a lesson that would be confirmed spectacularly in the opening months of the War of 1812.

The Marine Corps and a Permanent Identity

For the Marine Corps, the Barbary Wars — and specifically the Battle of Derna — provided both a defining moment and an enduring identity. The phrase 'to the shores of Tripoli' became embedded in the Corps' most sacred institutional memory, appearing in the Marines' Hymn and representing the tradition of service wherever ordered, under any conditions, against any enemy. The Mameluke sword, traditionally presented to O'Bannon by Hamet Karamanli, became the pattern for the ceremonial sword carried by Marine officers — the only sword still worn in daily service by American military officers — a living artifact of the Derna expedition.

Constitutional and Political Legacy

The Barbary Wars established several constitutional and political precedents of lasting importance. Jefferson's dispatch of naval forces to the Mediterranean without a formal congressional declaration of war was an early instance of presidential war-making that the Constitution's framers had not explicitly anticipated or forbidden, and it established a pattern — the President exercising military force abroad on his own authority. The wars also confirmed what Hamilton had argued a decade earlier: that the United States required a permanent professional navy to protect its commercial interests and project its power, and that republican scruples about standing military forces must yield to the practical necessities of national security.

FREQUENTLY ASKED QUESTIONS (FAQ)

Q. When were the Barbary Wars?

A. 1801-1815

Q. Where were the Barbary Wars?

A. Within the Mediterranean Sea. 

Q. Why didn't the United States simply continue paying tribute to the Barbary States?

A. The tribute payments had become economically unsustainable and politically humiliating. By 1800, the United States was paying approximately $1 million annually — roughly 20% of federal revenues in some estimates — to the Barbary States for commercial protection. More fundamentally, the tribute system was self-defeating: payments funded the very corsair fleets that preyed upon American shipping, and acquiescence to Barbary demands emboldened the rulers to make ever-larger demands. President Jefferson concluded that a decisive application of military force, though costly in the short term, was less expensive and more effective than perpetual tribute. The Second Barbary War of 1815 confirmed this calculation: Decatur's two-week campaign ended the tribute system permanently at the cost of a single naval engagement.

Q. What was the significance of the Marines at Derna, and how is it commemorated today?

A. The Battle of Derna on April 27, 1805, was the first time American armed forces fought and won a battle on foreign soil. Lieutenant Presley Neville O'Bannon and his seven Marines led the charge that captured the harbor fort at Derna, raising the Stars and Stripes over its battlements — the first American flag planted in victory on Old World soil. The event is commemorated in the opening line of the Marines' Hymn: 'From the Halls of Montezuma / To the shores of Tripoli.' The Mameluke sword, patterned on the weapon reputedly given to O'Bannon by Hamet Karamanli, is worn by Marine officers to this day and is the oldest weapon still carried by American military personnel in service dress uniform, a direct tangible connection to the Corps' founding baptism of fire.

Q. Was the burning of the USS Philadelphia legal under the laws of war?

Yes. Once the Philadelphia had been surrendered and captured by Tripolitan forces, she became enemy property. The subsequent mission by Lieutenant Decatur and the crew of the Intrepid to destroy her was a legitimate act of war against an enemy warship — not piracy or sabotage in a legal or moral sense. The relevant question under the laws of war was whether the destruction of a captured vessel in an enemy harbor constituted a lawful military operation, and by the standards of the era it clearly did. The operation was universally praised as a spectacular feat of arms. 

Q. Were American sailors actually enslaved by the Barbary States?

Yes. The enslavement of captured Christian sailors by Barbary corsairs was a genuine and systematic practice, not merely rhetorical hyperbole. Estimates suggest that between 1530 and 1780 as many as one to one-and-a-quarter million Europeans and Americans were enslaved by Barbary corsairs. American sailors captured at sea were typically held for ransom in harsh conditions — imprisoned in the bagnios (slave prisons) of Algiers, Tunis, or Tripoli, forced to perform hard labor, subjected to physical abuse, and sometimes converted under duress. The crew of the USS Philadelphia, numbering over 300 men, spent nineteen months in Tripolitan captivity before their release under the 1805 treaty. Captain William Bainbridge's correspondence from his captivity vividly describes the conditions of this confinement.

Q. How did the Barbary Wars influence the development of the U.S. Constitution's war powers?

Jefferson's deployment of naval forces against Tripoli without a formal declaration of war established an early and important precedent for executive war-making. Jefferson maintained that he had authority to act defensively but required congressional authorization for offensive operations — a distinction he attempted to honor in theory while finding increasingly difficult to maintain in practice. Congress responded with several measures short of a formal declaration, including authorizing the President to instruct naval commanders to 'subdue, seize, and make prize of all vessels, goods, and effects belonging to the Dey of Tripoli' — effectively offensive operations — without ever using the word 'war.' This pattern of undeclared hostilities authorized by Congress through specific legislation rather than a formal declaration of war became the template for most subsequent American military interventions, from the Quasi-War with France in 1798 through the Korean and Vietnam conflicts to operations in the twenty-first century.

Q. What happened to the principal American commanders after the Barbary Wars?

The careers of the Barbary War commanders were varied and often distinguished. Stephen Decatur went on to naval glory in the War of 1812, capturing HMS Macedonian in 1812, before his death in a duel with Commodore James Barron in 1820. William Bainbridge commanded the Constitution in the War of 1812, capturing HMS Java in December 1812. Isaac Hull commanded the Constitution in its celebrated defeat of HMS Guerriere in August 1812. John Rodgers became the senior officer of the Navy and a dominant figure in its post-war development. William Eaton, disgusted by the ransom payment in the 1805 treaty, returned to the United States a celebrated but embittered figure, served briefly in Congress, and died in 1811. Presley O'Bannon resigned his commission in 1807, settled in Kentucky, and served in the state legislature, receiving a ceremonial sword from the state in recognition of his Derna service.

SOURCES UTILIZED

Primary Sources

The Debates and Proceedings in the Congress of the United States, 7th–9th Congresses (1801–1807). Annals of Congress.

Jefferson, Thomas. The Writings of Thomas Jefferson. Edited by Paul Leicester Ford. 10 vols. New York: G.P. Putnam's Sons, 1892–1899.

Eaton, William. The Life of the Late General William Eaton. Brookfield, MA: E. Merriam, 1813.

Bainbridge, William. Letters from Tripolitan captivity, 1803–1805. National Archives, Naval Records.

Naval Documents Related to the United States Wars with the Barbary Powers. 7 vols. Washington: U.S. Government Printing Office, 1939–1944. (The foundational primary source collection for both Barbary Wars.)

American State Papers: Naval Affairs. Washington: Gales and Seaton, 1834.

Secondary Sources and Scholarly Works

Allen, Gardner Weld. Our Navy and the Barbary Corsairs. Boston: Houghton Mifflin, 1905.

Boot, Max. The Savage Wars of Peace: Small Wars and the Rise of American Power. New York: Basic Books, 2002.

Chidsey, Donald Barr. The Wars in Barbary: Arab Piracy and the Birth of the United States Navy. New York: Crown Publishers, 1971.

Cowdery, Jonathan. American Captives in Tripoli. Boston: Belcher & Armstrong, 1806.

De Kay, James Tertius. A Rage for Glory: The Life of Commodore Stephen Decatur, USN. New York: Free Press, 2004.

Field, James A., Jr. America and the Mediterranean World, 1776–1882. Princeton: Princeton University Press, 1969.

Fowler, William M., Jr. Jack Tars and Commodores: The American Navy, 1783–1815. Boston: Houghton Mifflin, 1984.

Guttridge, Leonard F., and Jay D. Smith. The Commodores: The U.S. Navy in the Age of Sail. New York: Harper & Row, 1969.

Kitzen, Michael L. S. Tripoli and the United States at War: A History of American Relations with the Barbary States, 1785–1805. Jefferson, NC: McFarland, 1993.

Lambert, Frank. The Barbary Wars: American Independence in the Atlantic World. New York: Hill and Wang, 2005.

London, Joshua E. Victory in Tripoli: How America's War with the Barbary Pirates Established the U.S. Navy and Built a Nation. Hoboken, NJ: John Wiley & Sons, 2005.

McKee, Christopher. A Gentlemanly and Honorable Profession: The Creation of the U.S. Naval Officer Corps, 1794–1815. Annapolis: Naval Institute Press, 1991.

Simons, Geoff. Libya and the West: From Independence to Lockerbie. Oxford: Centre for Libyan Studies, 2003.

Toll, Ian W. Six Frigates: The Epic History of the Founding of the U.S. Navy. New York: W.W. Norton, 2006. (Highly recommended general history.)

Tucker, Glenn. Dawn Like Thunder: The Barbary Wars and the Birth of the U.S. Navy. New York: Bobbs-Merrill, 1963.

Whipple, A.B.C. To the Shores of Tripoli: The Birth of the U.S. Navy and Marines. New York: William Morrow, 1991.

Biographies of Principal Participants

Anthony, Irvin. Decatur. New York: Charles Scribner's Sons, 1931. (Biography of Stephen Decatur Jr.)

Allison, Robert J. Stephen Decatur: American Naval Hero, 1779–1820. Amherst: University of Massachusetts Press, 2005.

Carr, James Revell. Seeds of Discontent: The Deep Roots of the American Revolution. New York: Walker & Co., 2008.

Crackel, Theodore J. Mr. Jefferson's Army: Political and Social Reform of the Military Establishment, 1801–1809. New York: New York University Press, 1987.

Edwards, Samuel. Barbary General: The Life of William H. Eaton. Englewood Cliffs, NJ: Prentice-Hall, 1968.

Hickey, Donald R. The War of 1812: A Forgotten Conflict. Urbana: University of Illinois Press, 1989. (Contains important context on Decatur and naval leaders after the Barbary Wars.)

Martin, Tyrone G. A Most Fortunate Ship: A Narrative History of Old Ironsides. Chester, CT: Globe Pequot Press, 1980. (History of USS Constitution, Preble's flagship.)

Malone, Dumas. Jefferson the President: First Term, 1801–1805. Boston: Little, Brown, 1970. (Volume IV of the definitive Jefferson biography; chapters on the Barbary War.)

Meyers, William Starr. The Story of the United States Marines. New York: Grosset & Dunlap, 1952.

Wheelan, Joseph. Jefferson's War: America's First War on Terror, 1801–1805. New York: Carroll & Graf Publishers, 2003. (Highly readable narrative history.)

Recommended Additional Reading and Research

Barnby, H.G. The Prisoners of Algiers: An Account of the Forgotten American–Algerian War, 1785–1797. London: Oxford University Press, 1966.

Howe, Daniel Walker. What Hath God Wrought: The Transformation of America, 1815–1848. New York: Oxford University Press, 2007. (Oxford History of the United States; provides context for the aftermath of the Barbary Wars.)

Kert, Faye M. Prize and Prejudice: Privateering and Naval Prize in Atlantic Canada in the War of 1812. St. John's: International Maritime Economic History Association, 1997.

Oren, Michael B. Power, Faith, and Fantasy: America in the Middle East, 1776 to the Present. New York: W.W. Norton, 2007. (Broad survey of American engagement with the Middle East, beginning with the Barbary Wars.)

Parker, Richard B. Uncle Sam in Barbary: A Diplomatic History. Gainesville: University Press of Florida, 2004.

Smelser, Marshall. The Congress Founds the Navy, 1787–1798. Notre Dame: University of Notre Dame Press, 1959.

Sumida, Jon T. Inventing Grand Strategy and Teaching Command: The Classic Works of Alfred Thayer Mahan Reconsidered. Baltimore: Johns Hopkins University Press, 1997. (For context on American naval strategic thought developing from this period.)

U.S. Marine Corps History Division. Marines in the Barbary Wars. (Official historical summary, available at the Marine Corps University, Quantico, Virginia.)

Naval History and Heritage Command, Washington, D.C. Extensive online and archival resources on early American naval history, including muster rolls, ship logs, and officer records from the Barbary Wars period. https://www.history.navy.mil

Founding Era Collection, University of Virginia. Transcribed letters and documents of Thomas Jefferson, James Madison, and Robert Smith relating to the Barbary Wars. https://founders.archives.gov