Under The Mamluks
In the 9th century, the Abbasids created an army loyal only to their caliphate, composed of non-Arab origin people, known as Mamluks. This force, created in the reign of al-Ma'mun (813–833), and his brother and successor al-Mu'tasim (833–842), prevented the further disintegration of the empire.
The Mamluk army, though often viewed negatively, both helped and hurt the caliphate. Early on, it provided the government with a stable force to address domestic and foreign problems. However, creation of this foreign army and al-Mu'tasim's transfer of the capital from Baghdad to Samarra created a division between the caliphate and the peoples they claimed to rule. In addition, the power of the Mamluks steadily grew until al-Radi (934–941) was constrained to hand over most of the royal functions to Mahommed bin Raik.
The Abbasids continued to maintain the presence of authority, yet it was confined to religious matters in Egypt, under the Mamluks.
Read more about this topic: Abbasid Caliphate