The Congress of Vienna (1814–15), which ended the Napoleonic Wars, led to increased European consensus on the need to end Barbary raiding. The sacking of Palma on the island of Sardinia by a Tunisian squadron, which carried off 158 inhabitants, roused widespread indignation. Britain had by this time banned the slave trade and was seeking to induce other countries to do likewise. States that were more vulnerable to the corsairs complained that Britain cared more for ending the trade in African slaves than stopping the enslavement of Europeans and Americans by the Barbary States.