محمود الأول
After the death of Malik-Shah I, his governor Aq Sunqur al-Hajib enjoyed much autonomy. He pledged allegiance to Malik-Shah's son Mahmud I, and then to Tutush only to switch back to Mahmud's brother Barkiyaruq. In 1094, Tutush defeated and beheaded Aq Sunqur thus assuming full control over Aleppo.