In 805, the island was donated by Charlemagne to the abbey of the Tre Fontane in Rome, and was later successively a possession of the Aldobrandeschi, Pannocchieschi, Caetani, and Orsini families, and of the municipality of Perugia. In 1241, the Sicilian and Pisan fleet of Emperor Frederick II destroyed a Genoese fleet in the Battle of Giglio. From 1264, Isola del Giglio was a Pisan dominion, from which it passed to the Medici family. It suffered several Saracen attacks, which ended only in 1799.