Background
Ahmad was the son of the third Ikhshidid ruler, Abu'l-Hasan Ali ibn al-Ikhshid, and grandson of the dynasty's founder, Muhammad ibn Tughj al-Ikhshid.
Ahmad was the son of the third Ikhshidid ruler, Abu'l-Hasan Ali ibn al-Ikhshid, and grandson of the dynasty's founder, Muhammad ibn Tughj al-Ikhshid.
His reign ended with the conquest of Egypt by the Fatimids in summer 969. When his father Ali died in January 966, he was only ten. Consequently, the powerful Abu'l-Misk Kafur, who had long been the virtual ruler of the state, assumed the reins of power himself.
Ahmad succeeded to the throne after Kafur's death in April 968, but the situation in Egypt was critical: the vizier Ja'far ibn al-Furat tried to control the government, but lacked a power-base outside the bureaucracy. Fatimid agents stirred up trouble among the Bedouin. The army was divided into mutually antagonistic factions (the Ikhshidiyya, recruited by Muhammad al-Ikhshid, the Kafuriyya, recruited by Kafur, and the Saqaliba or Rum, European/Byzantine slave-soldiers).
And the treasury was empty due to a series of low Nile floods that had caused famine. In the end, Ibn al-Furat was overthrown by Ahmad's uncle, al-Hasan ibn Ubayd Allah ibn Tughj, governor of Palestine. Hasan seized control of Fustat in autumn 968, and installed himself as regent.
On the coinage minted during this period, Hasan's name even preceded that of Ahmad, the nominal ruler. However, after only three months, Hasan released Ibn al-Jafar, entrusted him with the governance of Egypt, and returned to Palestine. Soon after, the Fatimids, taking advantage of the turmoil in the Ikhshidid regime, launched an invasion under Jawhar al-Siqilli.
By June 969, the Fatimid army stood before Fustat. After the Ikhshidid troops failed in a last-ditch effort to stop the Fatimids, the city, and Egypt with it, surrendered. According to the historian al-Farghani, relayed by Ibn Khallikan, Ahmad died on 13 July 987.