In February 1137 he rose in revolt against Bahram, drove him from Cairo, and was in turn appointed to the vizierate with the title of "Most Excellent King" ("al-malik al-afḍal") denoting his ambitions and status as a "de facto" monarch in his own right.