 In 836, Muslim ships helped their ally, Andrew II of Naples, when he was besieged by Beneventan troops, and with Neapolitan support Messina was also conquered in 842 by Muhammad Abul Abbas of Sicily, who later established the Emirate of Bari.In 845, Modica also fell, and the Byzantines suffered a crushing defeat near Butera, losing about 10,000 men.Lentini was conquered in 846, and Ragusa followed in 848.