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
Capital city of one constituent nation will also be the capital of the state overall, such as London, which is the capital of England and the United Kingdom. Similarly, each of the autonomous communities of Spain and regions of Italy has a capital city, such as Seville or Naples, while Madrid is the capital of the Community of Madrid and the Kingdom of Spain as a whole and Rome is the capital of Italy and the region of Lazio. In the Federal Republic of Germany, each of its constituent states (or "Länder" - plural of "Land") has its own capital city, such