On 14 May 1560, the Ottoman fleet, under the command of Piali Pasha and Dragut, severely defeated the "Holy League" of Philip II of Spain at the Battle of Djerba. From that time until 1881, Djerba belonged to the Ottoman regency of Tunis.