Attacks by Algerian pirates on American merchantmen resulted in the First and Second Barbary Wars, which ended the attacks on U.S. ships in 1815.
ɐtˈæks baɪ ældʒˈɪɹiən pˈaɪɹəts ˌɔn ɐmˈɛɹɪkən mˈɜːtʃɐntmˌɛn ɹɪzˈʌltᵻd ɪnðə fˈɜːst ænd sˈɛkənd bˈɑːɹbɚɹi wˈɔːɹz, wˌɪtʃ ˈɛndᵻd ðɪ ɐtˈæks ˌɔn jˈuː.ˈɛs. ʃˈɪps ɪn wˈʌn θˈaʊzənd ˈeɪthˈʌndɹɪd fˈɪftiːn.