Seljuq dynasty
During Al-Qa'im's reign, the Buwayhid ruler often fled the capital and the Seljuq dynasty gained power. Toghrül overran Syria and Armenia. He then made his way into the Capital, where he was well-received both by chiefs and people. In Bahrain, the Qarmatian state collapsed in Al-Hasa. Arabia recovered from the Fatimids and again acknowledged the spiritual jurisdiction of the Abbasids. Al-Muqtadi was honoured by the Seljuq Sultan Malik-Shah I, during whose reign the Caliphate was recognized throughout the extending range of Seljuq conquest. The Sultan was critical of the Caliph's interference in affairs of state, but died before deposing the last of the Middle Baghdad Abbasids.