In order to resist Tripolitanian demands for increased tribute, the Sardinian king sent a squadron to force Tripoli to a favorable peace treaty.
In August 1825, the ruler of Tripoli, Yusuf Karamanli, had become enraged when the new Sardinian consul arrived without bringing tribute with him, as had previously been the custom.
[3] When learning that Sardinia's King Charles Felix refused to give in and pay the requested sum, the Tripolitanians expelled his consul and declared war on the Sardinian government on 7 August.
[5] Once his squadron arrived in Tripoli, Sivori sent the Tritone into the harbor under a flag of truce in order to begin negotiations with Karamanli's government.
[7] One division would attack the Tripolitanian brig, another the schooners, and the third group of boats would assault the city's dockyard and customs house to ensure no reinforcements could enter the harbor.
At the same time, the third section of Sardinian boats managed to force their way ashore despite heavy opposition, capturing the dockyard and routing its Tripolitanian defenders.
[2] Later in the day while Sivori was making preparations for another attack on the city, a Dutch brig sailed out of port saluting him and signaling that it wished to communicate with him.
[8] Though a stipulation was included in the peace treaty that required Sardinia to pay Tripoli 7,000 gold francs, it was canceled and as a result the long practice of Sardinian tributary payments to the Tripolitanians finally ended.