US would pay tribute to the Barbary gov't to prevent the Barbary Pirates from seizing American merchant ships. However when Jefferson was in office, they upped the tribute, he refused to pay, they fought, us gained no decisive victory but gained respect and protection to US vessels.