Naval fleet
After Thomas Jefferson became president of the US in March of 1801, he sent a US Naval fleet to the Mediterranean to combat the Barbary pirates. The fleet bombarded numerous fortified cities in present-day Libya, Tunisia, and Algeria, ultimately extracting concessions of safe conduct from the Barbary states and ending the first war.