DatesAndTimes.org

Yusuf Karamanli's Forces Attack Derna (May 13, 1804)

May 13, 1804

On May 13, 1804, soldiers loyal to Yusuf Karamanli, Pasha of Tripoli, launched an assault on the coastal city of Derna in an effort to wrest it back from American and allied forces. The attack formed part of the broader First Barbary War, a conflict that pitted the young United States against the Ottoman regency of Tripoli over piracy, tribute payments, and control of North African ports. The struggle for Derna would become one of the most storied episodes of the war, immortalized in the opening line of the Marines' Hymn.

Yusuf Karamanli and the Path to War

Yusuf Karamanli, born in 1766, seized the throne of Tripoli in 1795 after a violent struggle with his brothers, eventually becoming the longest-reigning ruler of the Karamanli dynasty, governing until 1832. His rule coincided with escalating tensions between Tripolitania and the United States, as American merchant ships increasingly fell victim to Barbary corsairs demanding tribute for safe passage through the Mediterranean. When Yusuf demanded a dramatic increase in tribute in 1801, President Thomas Jefferson refused, prompting Tripoli to declare war on the United States—the first war fought by the newly independent nation on foreign soil. Yusuf's government relied heavily on piracy and ransom for revenue, making the conflict with American shipping interests both a political and economic necessity for his regime. As the war dragged on, Yusuf found himself contending not only with American naval power in the Mediterranean but also with a rival claimant to his own throne: his exiled brother, Hamet Karamanli, whom the Americans hoped to install as a more cooperative ruler. This internal rivalry would soon converge with the external war in a dramatic overland campaign against Derna.

Did You Know?

The phrase 'to the shores of Tripoli' in the Marines' Hymn directly references the Derna campaign, making it one of the earliest and most enduring tributes to a single battle in American military history.

The Fall and Defense of Derna

Derna, a fortified port city in eastern Tripolitania, became a critical target after American diplomat William Eaton organized an audacious expedition to place Hamet Karamanli on his brother's throne. Eaton assembled a mixed force of American Marines under Lieutenant Presley O'Bannon, Greek and Arab mercenaries, and Hamet's supporters, marching roughly 600 miles across the Libyan desert from Alexandria, Egypt. The combined force, supported by American naval bombardment from ships including the USS Argus, USS Hornet, and USS Nautilus, captured Derna after fierce fighting. Recognizing the strategic and symbolic importance of the loss, Yusuf Karamanli dispatched a substantial relief force to retake the city. On May 13, 1804, these Tripolitan troops attacked the American and allied garrison holding Derna, testing the resolve of the small occupying force. The defenders, bolstered by continued naval gunfire support and the fortifications they had inherited, managed to repel the assault, preserving their tenuous foothold in Yusuf's territory and dealing a blow to his efforts to reclaim full control of his domain.

Aftermath and Legacy

The successful defense of Derna proved to be one of the few unambiguous American land victories of the First Barbary War and became a defining moment in early United States military history. Though the campaign to install Hamet Karamanli as pasha ultimately stalled—overtaken by diplomatic negotiations between the United States and Yusuf—the battle demonstrated American resolve and left a lasting cultural legacy. The phrase 'to the shores of Tripoli' in the Marines' Hymn directly commemorates this campaign, cementing Derna's place in American military lore. Yusuf Karamanli, despite the setback, retained his throne and continued negotiating with the United States, eventually signing a peace treaty in June 1805 that ended the war on terms far less favorable to America than initially sought, though it did secure the release of American prisoners. Yusuf would go on to rule Tripoli for decades more, facing renewed conflict with the United States during the Second Barbary War in 1815 before his eventual overthrow in 1832. The events at Derna in 1804 remain a vivid illustration of the complex interplay between piracy, diplomacy, and dynastic politics that characterized the Barbary Wars.