<Table> <Tr> <Th_colspan="2"> First Barbary War </Th> </Tr> <Tr> <Td_colspan="2"> Part of the Barbary Wars </Td> </Tr> <Tr> <Td_colspan="2"> USS Enterprise fighting the Tripolitan polacca Tripoli by William Bainbridge Hoff, 1878 </Td> </Tr> <Tr> <Td_colspan="2"> <Table> <Tr> <Th> Date </Th> <Td> 10 May 1801--10 June 1805 </Td> </Tr> <Tr> <Th> Location </Th> <Td> Off the Mediterranean coast of Tripoli; Derne </Td> </Tr> <Tr> <Th> Result </Th> <Td> American - Swedish victory; peace treaty </Td> </Tr> </Table> </Td> </Tr> <Tr> <Th_colspan="2"> Belligerents </Th> </Tr> <Tr> <Td> United States Sweden (1801--02) Kingdom of Sicily </Td> <Td> <P> Tripolitania </P> Cherifian Empire (1802--04) </Td> </Tr> <Tr> <Th_colspan="2"> Commanders and leaders </Th> </Tr> <Tr> <Td> Thomas Jefferson Richard Dale Richard Morris William Eaton Edward Preble Gustav IV Adolf Rudolf Cederström </Td> <Td> <Ul> <Li> Yusuf Karamanli </Li> <Li> Rais Mahomet Rous </Li> <Li> Hassan Bey </Li> <Li> Shadi Nazmi Reis </Li> <Li> Slimane of Morocco </Li> </Ul> </Td> </Tr> <Tr> <Th_colspan="2"> Strength </Th> </Tr> <Tr> <Td> United States First Squadron: 4 frigates 1 schooner Second Squadron: 6 frigates 1 schooner Third Squadron: 2 frigates 3 brigs 2 schooners 1 ketch Swedish Royal Navy: 3 frigates William Eaton's invasion: 8 US Marines, William Eaton, 3 Midshipmen, and several civilians Approx. 500 Greek and Arab mercenaries </Td> <Td> Various cruisers 11--20 gunboats 4,000 soldiers </Td> </Tr> <Tr> <Th_colspan="2"> Casualties and losses </Th> </Tr> <Tr> <Td> United States: 35 killed 64 wounded Greek & Arab mercenaries: killed and wounded unknown </Td> <Td> Estimated 800 dead, 1,200 wounded at Derne plus ships and crew lost in naval defeats </Td> </Tr> </Table> <Tr> <Th_colspan="2"> First Barbary War </Th> </Tr> <Tr> <Td_colspan="2"> Part of the Barbary Wars </Td> </Tr>

Who dealt with the problems of the barbary pirates