Al-Muktafi
Abū Muḥammad ʿAlī ibn Aḥmad, better known by his regnal name al-Muktafī bi-llāh, was the caliph of the Abbasid Caliphate from 902 to 908. More liberal and sedentary than his militaristic father al-Mu'tadid, al-Muktafi essentially continued his policies, although most of the actual conduct of government was left to his viziers and officials. His reign saw the defeat of the Qarmatians of the Syrian Desert, and the reincorporation of Egypt and the parts of Syria ruled by the Tulunid dynasty. The war with the Byzantine Empire continued with alternating success, although the Arabs scored a major victory in the Sack of Thessalonica in 904. His death in 908 opened the way for the installation of a weak ruler, al-Muqtadir, by the palace bureaucracy, and began the terminal decline of the Abbasid Caliphate.