Ahmad Sanjar
Ahmad Sanjar was angered by Ali's action, and later sent Shah Ghazi Rustam back to Mazandaran. Ahmad Sanjar then recognized Bahram as the ruler of Mazandaran, and gave him an army to conquer the region. Ali immediately lost the support of many of his supporters, but those who remained loyal to him helped him to repelled Bahram. Bahram then withdrew to Nishapur, where he stayed with the amir Öner, until the latter was murdered by the Ismailis in 1121. Bahram then fled to Ghiyath ad-Din Mas'ud, who had recently become the ruler of Gorgan and promised to aid him in his conquest of Mazandaran. However, Ali managed to have Bahram assassinated in 1122.