You caught that too. In Jefferson’s time, they was an ‘organization’ called the Barbary Pirates.
Of course, it was Islamists, and they’d been extorting Europe for centuries. We sent our 11 ship Navy down, caught them napping, and destroyed the threat. Pretty embarassing for Europe, but it saved them a lot of ching.
The Barbary Pirates were a threat until 1830, when the French finally occupied Algiers. But it was Admiral Pellew of the Royal Navy who turned the scales against the pirates. His ships bombarded the cr*p out of the massive Algerian fortifications twice between 1815 and 1830, IIRC.
The only thing that kept the Barbary pirates going for so long was the fact that the Europeans were locked in a death struggle for and against Napoleon. After that ended, the Barbary threat was broken by the British, in defiance of a do-nothing political coalition of Prussia, Russia and Austria. Which may sound familiar to modern ears.