When Thomas Jefferson refused Yusuf Karamanli's demands, Yusuf, the pasha of Tripoli, declared war, and Jefferson was forced to haul the decommissioned frigates out of retirement and send them to the Mediterranean to teach the pirates a lesson.