The Barbary War, which took place from 1801 to 1805 and again from 1815, involved the United States and the Barbary States of North Africa, primarily Tripoli, Tunis, and Algiers. Estimates of casualties vary somewhat among historians, but it is reported that during the First Barbary War, around 35 American lives were lost. The number of wounded is also estimated to be a bit higher.
On the Barbary side, the casualties are much less documented, but it is believed that they were in the hundreds, including both military personnel and civilians. The conflict was marked by naval skirmishes and blockades, leading to a relatively lower number of casualties compared to other wars of that era. The Barbary War was significant as it marked the United States’ first foray into overseas military engagements and established its naval presence in the Mediterranean.