After the end of the civil war in 866, which resulted in al-Mu'tazz becoming sole caliph (r. 866–869), Muzahim was sent to Malatyah in the Byzantine frontier, and he reportedly went on campaign against the Byzantines.[7]