After an Anglo-Dutch bombardment in 1816 of Algiers on 27 August, led by Admiral Edward Pellew, 1st Viscount Exmouth, disabled most of the Pirate fleet, the Dey of Algiers was forced to agree to terms which included the release of the surviving 1,200 slaves (mostly from Sardinia) and the cessation of their practice of enslaving Europeans. After being defeated in this period of formal hostilities with European and American powers, the Barbary states went into decline.