Emirate of Sicily conquer Castrogiovanni (the modern Enna, where Euphemius died) and retreated back to Mazara. In 830 they received a strong reinforcement of 30,000 Ifriqiyan and Andalusian troops. The Iberian Muslims defeated the Byzantine commander Teodotus in July–August of that year, but again a plague forced them to return to Mazara and then to Ifriqiya. The Ifriqiyan units sent to besiege Palermo managed to capture it after a year long siege in September 831. Palermo became the Muslim capital of Sicily, renamed al-Madinah ("The City"). The conquest was a see-saw affair; with considerable resistance and many internal struggles, it took over a
Kingdom of Sicily of Sicily merged with the Kingdom of Naples to form the Kingdom of the Two Sicilies. In 1861 the Two Sicilies were amalgamated with Sardinia and several northern city-states and duchies to form the Kingdom of Italy. By the 11th century mainland southern Lombard and Byzantine powers were hiring Norman mercenaries, who were descendants of the Vikings; it was the Normans under Roger I who conquered Sicily, taking it away from the Arab Muslims. After taking Apulia and Calabria, Roger occupied Messina with an army of 700 knights. In 1068, Roger I of Sicily and his men defeated the Muslims