Why did Tripoli declare war on the United STates?

the united states ,too,had to pay tribute to the Barbary coast state. the ruler of Tripoli, how ever, did not think it was enough.