between the
United States of America and the Bey and Subjects of Tripoli of Barbary, known popularly as the
Treaty of Tripoli, written in
Arabic, signed 4 November 1796. In 1796, Karamanli drafted and signed the
Treaty of Tripoli, which permitted the passage of
American commercial ships through Tripolitanian waters. In 1801, Karamanli allegedly violated the treaty by demanding a tribute of $225,000 from the third American
President Thomas Jefferson. Jefferson, confident in the ability of the fledgling
United States Navy (newly reinforced with the
building of six heavy frigates beginning in 1797) to protect American shipping, refused the Pasha's demands. This led the Pasha to unofficially declare war in May 1801 by chopping down the flagpole with the American flag before the U.S. consulate. The U.S. Navy attempted to blockade Tripoli's harbors with a squadron sent by President Jefferson in 1803. After some initial military successes, most notably the capture of the grounded American frigate
USS Philadelphia in October 1803, the Pasha soon found himself threatened after a raid led by US Navy lieutenant
Stephen Decatur to burn and scuttle the
Philadelphia in Tripoli's harbor. By 1805, following a defeat at the
Battle of Derna as well as the allied recruitment of his deposed brother Hamet Karamanli by American army officer and diplomatic consul
William Eaton, Karamanli was forced to capitulate. He signed a treaty with American emissary
Tobias Lear of the
U.S. Department of State that officially ended the war on 10 June 1805. ==Al-Jawazi massacre==