(Ashinas), who never visited the country, and the rule of individuals of Turkish origin prevailed till the rise of the Fāṭimites, who for a time interrupted it. The presence of Turks in Egypt is attested by documents as early as 808. While the governor Turkish governors appointed. was appointed by the feudal lord, the finance minister continued to be appointed by the caliph. On the death of Ashnās in 844 Egypt was given in fief to another Turkish general Ītākh, but in 850 this person fell out of favour, and the fief was transferred to Montaṣir, son of the caliph Motawakkil. In 856 it was transferred from him to the vizier Fatḥ b. Khāqān, who for the first time appointed a Turkish governor. The chief places in the state were also filled with Turks. The period between the rise of the Abbasids and the quasi-independent dynasties of Egypt was marked by much religious persecution, occasioned by the fanaticism of some of the caliphs, the victims being generally Moslem sectarians. (For Egypt under Motawakkil see Caliphate, § c. par. 10.)
The policy of these caliphs also led to severe measures being taken against any members of the Alid family or adherents of their cause who were to be found in Egypt.
In the year 868 Egypt was given in fief to a Turkish general Bayikbeg, who sent thither as his representative his stepson Aḥmad b. Ṭūlūn, the first founder of a quasi-independent dynasty. This personage was himself the son of a Turk who, originally sent as a slave to Bagdad, Ṭūlūnid Dynasty. had risen to high rank in the service of the caliphs. Aḥmad b. Ṭūlūn spent some of his early life in Tarsus, and on his return distinguished himself by rescuing his caravan, which conveyed treasure belonging to the caliph, from brigands who attacked it; he afterwards accompanied the caliph Mostaʽīn into exile, and displayed some honourable qualities in his treatment of the fallen sovereign. He found a rival in Egypt in the person of Ibn al-Modabbir, the finance minister, who occupied an independent position, and who started the practice of surrounding himself with an army of his own slaves or freedmen; of these Ibn Ṭūlūn succeeded in depriving the finance minister, and they formed the nucleus of an army by which he eventually secured his own independence. Insurrections by adherents of the Alids gave him the opportunity to display his military skill; and when in 870 his stepfather died, by a stroke of luck the fief was given to his father-in-law, who retained Aḥmad in the lieutenancy, and indeed extended his authority to Alexandria, which had till that time been outside it. The enterprise of a usurper in Syria in the year 872 caused the caliph to require the presence of Aḥmad in that country at the head of an army to quell it; and although this army was not actually employed for the purpose, it was not disbanded by Aḥmad, who on his return founded a fresh city called Kaṭā’i‘, “the fiefs,” S.E. of modern Cairo, to house it. On the death of Aḥmad’s father-in-law in the same year, when Egypt was given in fief to the caliph’s brother Mowaffaq (famous for his defeat of the Zanj), Aḥmad secured himself in his post by extensive bribery at headquarters; and in the following year the administration of the Syrian 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 Aḥmad to submission had to be abandoned for want of means. In 877 and 878 Aḥmad advanced into Syria and obtained the submission of the chief cities, and at Tarsus entered into friendly relations with the representatives of the Byzantine emperor. During his absence his son ʽAbbās revolted in Egypt; on the news of his father’s return he fled to Barca, whence he endeavoured to conquer the Aghlabite dominions in the Maghrib; he was, however, defeated by the Aghlabite ruler, and returned to Barca, where he was again defeated by his father’s forces and taken prisoner.
In 882 relations between Aḥmad and Mowaffaq again became strained, and the former conceived the bold plan of getting the caliph Moʽtamid into his power, which, however, was frustrated by Mowaffaq’s vigilance; but an open rupture was the result, as Mowaffaq formally deprived Aḥmad of his lieutenancy, while Aḥmad equally formally declared that Mowaffaq had forfeited the succession. A revolt that broke out at Tarsus caused Aḥmad to traverse Syria once more in 883, but illness compelled him to return, and on the 10th of May 884 he died at his residence in Kaṭā’iʽ. He was the first to establish the claim of Egypt to govern Syria, and from his time Egypt grew more and more independent of the Eastern caliphate. He appears to have invented the fiction which afterwards was repeatedly employed, by which the money spent on mosque-building was supposed to have been furnished by discoveries of buried treasure.
He was succeeded by his son Khomārūya, then twenty years of age, who immediately after his accession had to deal with an attempt on the part of the caliph to recover Syria; this attempt failed chiefly through dissensions between the caliph’s officers, but partly through the ability of Khomārūya’s general, who succeeded in winning a battle after his master had run away from the field. By 886 Mowaffaq found it expedient to grant Khomārūya 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, Khomārūya 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. The security which he thereby gained gave him the opportunity to indulge his taste for costly buildings, parks and other luxuries, of which the chroniclers give accounts bordering on the fabulous. After the marriage of his daughter to the caliph, which was celebrated at enormous expense, an arrangement was made giving the Ṭūlūnid sovereign the viceroyalty of a region extending from Barca on the west to Hīt on the east; but tribute, ordinarily to the amount of 300,000 dinars, was to be sent to the metropolis. His realm enjoyed peace till his death in 896, when he fell a victim to some palace intrigue at Damascus.
His son and successor Abu’l-ʽAsākir Jaish was fourteen years old at his accession, and being without adequate guidance soon revealed his incompetence, which led to his being murdered after a reign of six months by his troops, who gave his place to his brother Hārūn, who was of about the same age. In the eight years of his government the Ṭūlūnid empire contracted, owing to the revolts of the deputies which Hārūn was unable to quell, though in 898 he endeavoured to secure a new lease of the sovereignty in Egypt and Syria by a fresh arrangement with the caliph, involving an increase of tribute. The following years witnessed serious troubles in Syria caused by the Carmathians, which called for the intervention of the caliph, who at last succeeded in defeating these fanatics; the officer Mahommed b. Solaimān, to whom the victory was due, was then commissioned by the caliph to reconquer Egypt from the Ṭūlūnids, and after securing the allegiance of the Syrian prefects he invaded Egypt by sea and land at once. Before the arrival of these troops Hārūn had met his death at the hands of an assassin, or else in an affray, and his uncle Shaibān, who was placed on the throne, found himself without the means to collect an army fit to grapple with the invaders. Fostat was taken by Mahommed b. Solaimān after very slight resistance, at the beginning of 905, and after the infliction of severe punishment on the inhabitants Egypt was once more put under a deputy, ʽĪsā al-Nausharī, appointed directly by the caliph.
The old régime was not restored without an attempt made by an adherent of the Ṭūlūnids to reconquer Egypt ostensibly for their benefit, and for a time the caliph’s viceroy had to quit the capital. The vigorous measures of the authorities at Bagdad speedily quelled this rebellion, and the Ṭūlūnid palace at Kaṭā’iʽ was then destroyed in order that there might be nothing to remind the Egyptians of the dynasty. In the middle of the year 914 Egypt was invaded for the first time by a Fāṭimite force sent by the caliph al-Mahdī ʽObaidallah, now established at Kairawān. The Mahdi’s son succeeded in taking Alexandria, and advancing as far as the Fayūm; but once more the Abbasid