Rubuta ci gaba don wannan sakin layi - A cikin 1801, Yusuf ya buƙaci haraji na $ 225,000 daga Shugaban Amurka Thomas Jefferson. Jefferson, mai dogaro da ikon sabon Sojojin ruwan Amurka don kare jigilar Amurka, ya ƙi buƙatun Pasha, wanda ya sa Pasha ya ayyana yaƙi ba bisa ƙa'ida ba, a watan Mayu 1801, ta hanyar yanke tutar tutar a gaban ofishin jakadancin Amurka. Jefferson ya amsa ta hanyar ba da umarnin Sojojin Ruwa na Amurka zuwa cikin Bahar Rum, tare da samun nasarar rufe tashar jiragen ruwa na Tripolitania a 1803. Bayan wasu nasarorin soja na farko, musamman kama jirgin USS Philadelphia, ba da daɗewa ba pasha ya sami kansa yana fuskantar barazanar mamayewa daga sojojin Amurka bayan yakin Derna
da kuma dawo da dan uwansa, Hamet Karamanli, wanda jami'in sojojin Amurka William Eaton ya dauka. Ya sanya hannu kan yarjejeniyar kawo karshen yakin a ranar 10 ga Yuni, 1805.