On the death of Ahmads father-in-law in the same year, when Egypt was given in fief to the caliphs brother Mowaffaq (famous for his defeat of the Zanj), Ahmad secured himself in his post by extensive bribery at headquarters; and in the following year the administration of the Syri,an frontier was conferred on him as well.
By 875 he found himself strong enough to refuse to send tribute to Bagdad, preferring to spend the revenues of Egypt on the maintenance of his army and the erection of great buildings, such as his famous mosque; and though Mowaffaq advanced against him with an army, the project of reducing Abmad to submission had to be abandoned for want of means.
In 882 relations between Abmad and Mowaffaq again became strained, and the former conceived the bold plan of getting the caliph Motamid into his power, which, however, was frustrated by Mowaffaqs vigilance; but an open rupture was the result, as Mowaffaq formally deprived Abmad of his lieutenancy, while Abmad equally formally declared that Mowaffaq had forfeited the succession.
By 886 Mowaffaq found it expedient to grant Khomaruya the possession of Egypt, Syria, and the frontier towns for a period of thirty years, and ere long, owing to the disputes of the provincial governors, Khomgruya found it possible to extend his domain to the Euphrates and even the Tigris.
On the death of Mowaffaq in 891 the Egyptian governor was able to renew peaceful relations with the caliphs, and receive fresh confirmation in his possessions for thirty years.
He mistrusted also his brothers Mowayyad and Mowaffaq, who had interceded for them.
Khagan, the able vizier of Mohtadi, and by Motamid's talented brother Abu Ahmad al-Mowaffaq; Musa.
The caliph himself, wearing the mantle and the staff of the Prophet, then went out against him, and after a vigorous resistance he was beaten by Mowaffaq, who had the command of the troops, and fled to Jondisapur in Khuzistan, where he died three years later, leaving his empire to his brother `Amr. This prince maintained himself in power till the year 900, when he was beaten and taken prisoner by Isma`il b.
Motamid, who wished to free himself from the guardianship of his brother Mowaffaq, concerted with him a plan to emigrate to Egypt, Ahmad being himself angered against Mowaffaq on personal grounds.
- The sudden death of Moktafi, Dhu`lga`da 295 (August 908), was a fatal blow to the prestige of the Caliphate, which had revived under the successive governments of Mowaffaq, Motadid and himself.