Ten years after the war with Tripoli, Decatur imposed a treaty on Algiers within weeks. Why did America move from paying tribute to dictating terms by force?
Beyond the Atlantic | America’s Wars — 08
1815 | The United States and the Regency of Algiers: from paying tribute to imposing treaties by naval force
Introduction: When American Ships Reached Algiers
In the summer of 1815, American warships appeared off the Algerian coast.
The United States had finished its war with Britain only a few months earlier.
The young republic had spent long years trying to protect its maritime trade from attack, blockade and seizure.
But this time, its adversary was neither Britain nor France.
It was the Regency of Algiers, one of the naval powers of the western Mediterranean.
The American squadron was commanded by Commodore Stephen Decatur, the officer who had become famous eleven years earlier for destroying the American frigate Philadelphia inside the harbor of Tripoli.
Decatur had become one of the best-known officers of the American navy.
His new mission was clear: to end the state of war with Algiers, secure the release of American prisoners, and impose an agreement without the annual payments the United States had been making to protect its trade.
But behind this mission lay an older story.
The United States had already made treaties with the rulers of North Africa and paid money for peace.
It had then fought a war against Tripoli between 1801 and 1805.
And now it was returning to the Mediterranean to face a similar problem, but in different circumstances.
What had changed between the war with Tripoli and the war with Algiers? And was naval power alone enough to end a system of relations that had governed Mediterranean trade for centuries?
1. Algiers at the Beginning of the Nineteenth Century
In 1815, Algiers was a regency nominally tied to the Ottoman Empire, but it enjoyed broad independence in running its political, military and financial affairs.
It was ruled by the dey, whose authority rested on local military and administrative institutions.
Algiers was an important coastal city and a commercial and military center in the western Mediterranean.
Its economy was tied to trade, fees and ports, alongside armed naval activity targeting the ships of states with which it had no suitable agreements.
Relations with European and American powers were often regulated by treaties that included commercial terms, financial payments and diplomatic gifts.
But these relations were not fixed.
Terms could change with a change of ruler, of the balance of power or of international circumstances.
So treaties sometimes had to be renegotiated.
Algiers, like Tripoli, Tunis and Morocco, dealt with a maritime world in which trade, politics and military force were intertwined.
But it was not part of a united alliance with the other North African entities against the United States.
Each had its own relations and interests.
2. Why Did the United States Pay Algiers?
After American independence in 1783, American merchant ships lost the protection they had enjoyed when they sailed under the British flag.
They became vulnerable to interception in the Mediterranean.
In the 1780s, Algerian ships seized American merchant vessels and held members of their crews captive.
The United States at the time lacked a strong navy.
So it tried to solve the problem diplomatically.
In 1795, the United States reached a treaty with Algiers.
The treaty included financial arrangements, the release of prisoners and the regulation of commercial relations.
But carrying out the agreement ran into difficulties, especially over the payments and naval stores the United States had promised to provide.
This policy was part of a broader international reality.
Many European states gave money and gifts to the rulers of North Africa in exchange for the safety of their ships.
The United States was no exception.
But the continuation of these payments stirred objections within the American republic.
Some officials believed that building a naval force able to protect trade would be better than relying permanently on financial settlements.
3. The War with Britain Revives the Crisis
When the War of 1812 broke out between the United States and Britain, the American navy was absorbed in defending the coasts and trade in the Atlantic and on the Great Lakes.
Washington could no longer spare a large naval force for the Mediterranean.
During that period, relations with Algiers deteriorated.
Dey Hajj Ali had come to power in 1809, and Omar Agha took power in 1815 after internal political upheaval.
In 1812, the Algerian authorities refused to continue relations on the previous terms, and the American consul was ordered to leave Algiers.
Hostilities against American ships resumed.
In 1812, the Algerians seized the American merchant ship Edwin and held members of its crew.
But the United States could not respond at once.
It was fighting a larger war against Britain.
The crisis thus remained unresolved until the War of 1812 ended.
4. The End of the War of 1812 Opens the Way to the Mediterranean
In December 1814, the United States and Britain signed the Treaty of Ghent.
The treaty took effect in February 1815.
Washington was now able to redirect part of its naval power to the Mediterranean.
President James Madison believed the continuing attacks on American ships called for a military response.
In March 1815, Congress authorized the use of naval force against Algiers.
Here an important difference from the First Barbary War emerged.
In 1801, the United States was still testing its ability to carry out distant naval operations.
By 1815, the American navy had gained much more experience after its confrontations with France, Britain and Tripoli.
It also had more ships and more experienced officers.
And this time Washington was ready to use force more quickly.
5. Stephen Decatur Returns to the Mediterranean
Stephen Decatur was chosen to command one of the American squadrons bound for the Mediterranean.
Decatur had won wide fame during the First Barbary War.
In February 1804, he had led the raid that destroyed the frigate Philadelphia inside the harbor of Tripoli.
He had then fought in the War of 1812 against Britain.
In 1815, he was given a mission that combined military action with political negotiation.
The squadron he commanded included several warships, among them the frigate Guerriere, named after a British frigate that the Constitution had defeated in 1812 and that was burned after its capture.
The mission required moving fast, before Algiers could fully prepare for a confrontation.
The aim was not to occupy Algiers.
It was to pressure its government into ending hostilities and signing a new treaty.
6. The Battle off Cape Gata: The Fall of the Algerian Frigate
On June 17, 1815, the American squadron met a large Algerian warship near Cape Gata on the Spanish coast.
The Algerian ship was known in American sources as the Mashouda.
It was commanded by Rais Hamidou, one of the most famous Algerian naval commanders of the period.
Hamidou had wide experience in naval operations.
But the Algerian ship faced a larger American force.
The encounter ended with the ship captured and Hamidou killed.
It was a significant event.
Algiers had lost one of its foremost naval commanders, as well as an important warship.
The battle was the first major success of Decatur’s campaign.
But it was not the end of operations.
The American squadron continued its advance in the Mediterranean.
7. The Capture of a Second Algerian Ship
A few days later, American forces intercepted another Algerian ship off the Spanish coast.
The ship was known as the Estedio.
The encounter ended with its capture.
Algiers had thus lost two ships in a short time.
These losses had political as well as military effects.
They showed that the American squadron could intercept Algerian ships far from the port of Algiers.
They also strengthened Decatur’s hand in the coming negotiations.
But the scale of these battles should not be exaggerated.
This was not a full-scale clash between two great fleets.
It was a series of limited naval operations in which the United States achieved important tactical goals.
Their main value was that they helped shift the balance of the negotiation.
8. Decatur Before Algiers: Force Enters the Negotiations
Decatur arrived off Algiers in late June 1815.
Dey Omar Agha had only recently come to power.
He now faced a difficult position.
Algiers had lost important ships, while the American force stood off its coast.
Decatur demanded the release of the American prisoners, an end to the demands for annual payments, and relations on a new footing.
He also demanded compensation for earlier American losses.
The negotiations were swift.
On June 30, 1815, a treaty was signed between the United States and Algiers.
It provided for the release of the American prisoners and an end to the annual payments the United States had been making to Algiers.
It also included arrangements on compensation and the return of property.
The agreement was an important diplomatic victory for the United States.
But it was achieved under direct military pressure.
That is what made the war an early example of using naval power to back political demands.
9. Was the Problem Solved for Good?
The signing of the treaty did not end every tension.
Dey Omar Agha later objected to some of its terms, and the question of returning the Algerian ships captured by the Americans caused further disputes.
Political circumstances in the region also changed.
In the following years, European pressure on Algiers continued, especially from Britain and the Netherlands.
In August 1816, Algiers was heavily bombarded by an Anglo-Dutch force under Lord Exmouth.
That campaign was separate from the American–Algerian war of 1815.
It aimed to impose terms concerning European captives and naval practices.
American–Algerian relations, meanwhile, continued through new negotiations and arrangements.
So it would be wrong to say that the war of 1815 ended all forms of armed naval activity in North Africa.
But it helped end the system of annual payments in American–Algerian relations.
10. Why Was the War So Short?
The main American military campaign lasted only a few weeks.
There were several reasons for its brevity.
First, the United States had sent a naval force ready to act as soon as it arrived.
Second, Decatur won quick successes in intercepting Algerian ships.
Third, Algiers was going through a political transition after Omar Agha came to power.
Fourth, the United States was not seeking to occupy Algerian territory or run its internal affairs.
It wanted a specific settlement concerning prisoners, trade and payments.
Fifth, Algiers faced a wider web of European relations and challenges, and prolonging the war with the United States was not necessarily in its interest.
Military pressure and political calculation thus converged.
The result was a relatively quick agreement.
11. What Changed in the American Navy?
The Second Barbary War was an important milestone in the development of the American navy.
It showed that the United States could now send a squadron to the Mediterranean and carry out successful operations without years of fighting.
It also reflected the experience American officers had gained in earlier wars.
Stephen Decatur was a clear example of this development.
He had begun his career as a young naval officer, then taken part in the operations against Tripoli, fought in the War of 1812, and become a commander able to combine military action with negotiation.
But the navy’s development was not only a story of individuals.
It was the product of long institutional investment in shipbuilding, training and administration.
The United States was gradually learning how to protect its trade beyond its borders.
12. Algiers Facing a Shifting Balance of Power
From the Algerian side, the war was part of a broader transformation in the Mediterranean.
European and American powers were beginning to use fleets that were better organized and able to operate over long distances.
Technical, military and financial developments were changing the balance between naval powers.
But this transformation did not happen suddenly in 1815.
It unfolded over decades.
Algiers was still an important regional power, but it faced mounting pressure from states with greater naval and economic resources.
In 1830, France would begin its invasion of Algeria, an event separate from the American–Algerian war but part of the broader context of the shifting balance of power in the Mediterranean during the nineteenth century.
The American war of 1815 cannot be considered a direct cause of the French invasion.
But it was one of the signs that relations between the Western naval powers and the North African entities were changing.
Between the Lines: Why Did America Move from Paying Money to Using Force?
If we compare the First Barbary War with the Second, we notice an important change in American behavior.
At the start of the nineteenth century, Washington was still trying to build its naval power.
It fought a long war against Tripoli that ended in a settlement involving a payment for the release of prisoners.
By 1815, the United States was more ready to use direct military force.
It had greater naval experience.
And it was better able to impose its terms in negotiation.
But this shift was not merely a change of political mood.
It was the result of accumulated military and institutional experience.
The United States had come to realize that maritime trade did not depend on treaties alone, but also required a real ability to protect its ships.
Algiers, for its part, was dealing with an international system that was gradually changing.
Powers that had once accepted paying money for peace were beginning to possess fleets able to impose different terms.
Here the most important question arises:
Had the principles governing relations between states changed, or had the balance of power that set the terms of those relations changed?
In fact, both happened, to different degrees.
The United States now rejected some practices it had once accepted.
But its ability to reject them had grown because it possessed new military tools.
This reveals an important historical truth.
States do not shape their policies by principles alone, nor by power alone.
Principles, interests, capabilities and international circumstances interact to shape their decisions.
What this reading adds is that the Second Barbary War was not merely a short clash between America and Algiers, but a moment that revealed the United States moving from reliance on financial settlements to the use of naval power as a principal tool for protecting its foreign trade.
But it also revealed that this shift was part of a wider change in the balance of power in the Mediterranean.
Conclusion: A Few Weeks That Revealed a Great Shift
The American campaign against Algiers in 1815 ended with an agreement that ended the war, brought the prisoners home and set commercial relations on a new footing.
The war was short compared with the First Barbary War.
But its historical importance was great.
It showed how far the American navy had developed and how well it could operate far from home.
It also revealed the changing relationship between the United States and the naval powers of North Africa.
The war was neither the beginning of American control of the Mediterranean nor the end of all naval conflict in the region.
But it was an important milestone in the history of American foreign policy.
Washington had become more willing to use its military power to protect its commercial interests.
Within three decades of independence, the American republic had moved from a state seeking to protect its trade through treaties and payments to one able to send a distant squadron and impose its terms under the pressure of arms.
That shift was the prelude to a new phase in the history of the American presence beyond the continent.
Sources and References
Academic works:
- Frank Lambert — The Barbary Wars: American Independence in the Atlantic World (2005).
- William M. Fowler Jr. — Jack Tars and Commodores: The American Navy, 1783–1815 (1984).
- Joshua E. London — Victory in Tripoli: How America’s War with the Barbary Pirates Established the U.S. Navy and Shaped a Nation (2005).
Institutional and documentary sources:
- Office of the Historian — U.S. Department of State
- Naval History and Heritage Command
- Library of Congress
- U.S. National Archives
Next: “The Seminole Wars: How Florida Became a Battleground Between American Expansion, Native Nations and People Fleeing Slavery”
Between the Lines — Seek the human behind the story.
Leave a trace.
