in 1061; an invasion by the Algerian Hammadids to preserve Islamic rule was thwarted in 1063 by the fleets of Genoa and Pisa. The loss of Palermo in 1072 and of Syracuse in 1088 could not be prevented. Noto and the last Muslim strongholds on Sicily fell in 1091. In 1090–91, the Normans also conquered Malta; Pantelleria fell in 1123. A small Muslim population remained on Sicily under the Normans. Roger II hosted at his court, among others, the famous geographer Muhammad al-Idrisi and the poet Muhammad ibn Zafar. At first, Muslims were tolerated by the Normans, but soon pressure from the Popes led to their increasing discrimination; most mosques were destroyed or made into churches. The first Sicilian Normans did not take part in the Crusades, but they undertook a number of invasions and raids in Ifriqiya, before they were defeated thereafter 1157 by the Almohads. This peaceful coexistence in Sicily finally ended with the death of King William II in 1189. The Muslim elite emigrated at that time. Their medical knowledge was preserved in the Schola Medica Salernitana; an Arabian-Roman-Norman synthesis in art and architecture survived as Sicilian Romanesque. The remaining Muslims fled, for example to Caltagirone on Sicily, or hid out in the mountains and continued to resist against the Hohenstaufen dynasty, who ruled the island from 1194 on. In the heartland of the island, the Muslims declared Ibn Abbad the last Emir of Sicily. To end this upheaval, emperor Frederick II, himself a Crusader, instigated a policy to rid Sicily of the few remaining Muslims. This cleansing was done in small part under Papal influence but mostly in order to create a loyal force of troops which could not be influenced by non-Christian infiltrators. In 1224–1239 he deported every single Muslim from Sicily to an autonomous colony under strict military control (so that they could not infiltrate non-Muslim areas) in Lucera in Apulia. Muslims were recruited however by Frederick in the army and constituted his faithful personal bodyguard, since they had no connection to his political rivals. In 1249, he ejected the Muslims from Malta as well. Lucera was returned to the Christians in 1300 at the instigation of the pope by King Charles II of Naples. Muslims were forcefully converted, killed or expelled from Europe . However a Muslim community was still recorded in Apulia in 1336 and very recently in 2009, a genetic study