Ramba uchiverenga ndima iyi - Jefferson akanga asingadi kubatanidzwa murudzi rupi norupi rwekurwisana kwamarudzi ose, asi aidavira kuti simba raizodzivisa zvakanakisisa Nyika dzeBarbary kubva mukukumbira mutero wakawedzerwa. Iye akaraira U.S. Navy kupinda muGungwa reMediterranean kuzvidzivirira paVapambi veBarbary, kuvamba Hondo yeBarbary Yokutanga
. Nhamburiko dzokutanga dzehurumende dzakanga dzisingabatsiri zvikuru, uye muna 1803 ngarava yacho yakabatwa neTripoli. Muna February 1804, Lieutenant Stephen Decatur akatungamirira kurwisa kwakabudirira pachiteshi chengarava cheTripoli icho chakapisa "Philadelphia", zvichiita kuti Decatur ave gamba renyika. Jefferson nehondo duku yeAmerica vakamanikidza Tunis neAlgiers kuputsa mubatanidzwa wavo neTripoli iyo pakupedzisira yakaibvisa muhondo. Jefferson akarayirawo kurwisa kwechikepe zvishanu zvakasiyana zveTripoli, izvo zvakadzorera rugare muMediterranean kwechinguva, kunyange zvazvo Jefferson akaramba achibhadhara nyika dzakasara dzeBarbary kusvika pakuguma kwehutungamiri hwake.