Answer:
When Thomas Jefferson became president, the pirates increased the cost of the tribute and Jefferson refused to pay it. Although the pirates were finished for the time being, they'd start capturing American ships again in 1807. This led to the Second Barbary War where the pirates were defeated for a second time.