In 838, the Abbasid Caliph al-Mu'tasim led a major campaign against the Byzantine Empire that ended in the sack of the city of Amorium, the capital of the Anatolic Theme and birthplace of the reigning Byzantine Amorian dynasty.