By his able suppression of revolts in North Africa, he became the most influential man in the Empire. He was not only a good soldier but also an able administrator; for he ruled Egypt, completely, for many years before Imam al-Muizz came there. After that, he withdrew only to his military duties and remained the commander-in-chief throughout his life. He died in 381 A.H. in the time of Imam al-Aziz.