In the 830s Abbasid Caliphate started military excursions culminating with a victory in the Sack of Amorium. The Byzantines then counter-attacked and sacked Damietta in Egypt. Later the Abbasid Caliphate responded by sending their troops into Anatolia again, sacking and marauding until they were eventually annihilated by the Byzantines at the Battle of Lalakaon in 863.