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
Eryx (Sicily) his visit to this part of Sicily, and contended with that hero in a wrestling match, but was vanquished by him. This Eryx was a son of Aphrodite and Butes, a king of the country, and is hence repeatedly alluded to by Virgil as a brother of Aeneas, though that poet does not refer to him the foundation of the city. The legends which connected it with Aeneas and a Trojan chief named Elymus evidently pointed to what we learn from Thucydides as an historical fact, that Eryx as well as Segesta was a city of the Elymi, a Sicilian