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
Flag of Sicily as the "trinacria", which is also an ancient name of Sicily. The name was also revived and used during the Aragonese period of the Kingdom of Sicily immediately after the Sicilian Vespers (1282) which ended Angevin rule. During the period of Muslim rule under Emirate of Sicily (831–1072), the island used a pure green flag, similar to the former national flag of Libya under Muammar Gaddafi. Flag of Sicily The flag of Sicily (; ) was first adopted in 1282, after the successful Sicilian Vespers revolt against the king Charles I of Sicily. This flag bears a resemblance to the