Question: why did the united states go to war with tripoli?
Answer: The cause of the U.S. participation was pirates from the Barbary States seizing American merchant ships and holding the crews for ransom, demanding the U.S. pay tribute to the Barbary rulers. United States President Thomas Jefferson refused to pay this tribute. Sweden had been at war with the Tripolitans since 1800.