 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.