The Barbary War was fought because Thomas Jefferson didn’t want to pay tribute to the Barbary States. It was the first military conflict authorized by congress. The United States fought two wars with Tripoli and Algiers.
Muhammad is part of a Portuguese-Algerian group. Muhammad declared war on the United States and captured several of America’s ships. The United States government was unable to protect the ships. Awhile back, Muhammad seized a U.S. merchant ship in 1784. Two years later the U.S. was able to make a treaty with Morocco in 1786.
In 1815 a treaty was made with William Shaler to not raid anymore U.S. ships. The Decatur’s Algerian treaty wasn’t official until 1822. Even though they weren’t raiding U.S. ships anymore