From the first, insolent and overbearing, the mamelukes began, as time passed on, to feel their power, and grew more and more riotous and turbulent, oppressing the land by oft-repeated pillage and outrage. Broken up into parties, each with the name of some sultan or leader, their normal state was one of internal combat and antagonism; while, pampered and indulged, they often turned upon their masters. Some of the more powerful sultans were able to hold them in order, and there were not wanting occasional intervals of quiet; but trouble and uproar were ever liable to recur.

The Eyyubite princes settled their mamelukes, chiefly Turks and Mongols—so as to keep them out of the city—on an island in the Nile, whence they were called Baharites, and the first mameluke dynasty (1260-1382) was of this race, and called accordingly. The others, a later importation, were called Burjites, from living in the Citadel, or quarters in the town; they belonged more to the Circassian race. The second dynasty (1382-1517) was of these, and, like the Baharite dynasty, bore their name. The mamelukes were for the most part attached faithfully to their masters, and the emirs, with their support, enriched themselves by exactions from the people, with the unscrupulous gains of office, and with rich fiefs from the state. The mamelukes, as a body, thus occupied a prominent and powerful position, and often, especially in later times, forced the Sultan to bend to their will.

Such is the people which for two centuries and a half ruled Egypt with a rod of iron, and whose history we shall now attempt to give.

It was about the middle of the twelfth century that Nureddin and King Amalrich both turned a longing eye toward Egypt, where, in the decrepitude of the Fatimites, dissension and misrule prevailed. The Caliph, in alarm, sought aid first from one and then from the other; and each in turn entered Egypt ostensibly for its defence, but in reality for its possession. A friendly treaty was at last concluded with both; but it was broken by Amalrich, who invaded the country and demanded a heavy ransom. In this extremity, the Caliph again appealed to Nureddin, sending locks of his ladies' hair in token of alarm.

Glad of the opportunity, Nureddin despatched his general, Shirkoh, to the rescue, before whom Amalrich, crestfallen, retired. Shirkoh, having thus delivered the Caliph, gained his favor, and, as vizier, assumed the administration. Soon after he died; and his nephew, Saladin, succeeded to the vizierate. The following year the Caliph also died; and now Saladin, who had by vigorous measures put down all opposition, himself as sultan took possession of the throne. Thus the Fatimite dynasty, which had for two centuries ruled over Egypt, came to an end.

Saladin was son of a Kurdish chief called Eyyub, and hence the dynasty is termed Eyyubite. His capital was Cairo. He fortified the city, using the little pyramid for material, and, abandoning the luxurious palace of the Fatimites, laid the foundations of the Citadel on the nearest crest of the Mokattam range, and to it transferred his residence. After a prosperous rule over Egypt and Syria of above twenty years he died, and his numerous family fell into dissension. At last his brother Adlil, gaining the ascendency, achieved a splendid reign not only at home, but also in the East, from Georgia to Aden. He died of grief at the taking of Damietta by the crusaders, and his grandson Eyyub succeeded to the throne.

It was now that the Charizmian hordes fell upon Syria, and, with horrible atrocities, sacked the holy city. Forming an alliance with these barbarians, the Sultan sent the mameluke general Beibars to join them against his uncle, the Syrian prince Ismail, between whom and the crusaders an unholy union had prevailed. Near Joppa the combined army of Franks and Moslems met at the hands of Beibars and the eastern hordes, with a bloody overthrow; and thus all Syria again fell under Egypt. To establish his power both at home and abroad, the Sultan bought vast numbers of Turkish mamelukes; and it was he who first established them as Baharites on the Nile. His son Turan was the last Eyyubite sultan.

In his reign Louis IX of France invaded Egypt, and, advancing upon Cairo, was defeated and taken prisoner. Turan allowed him to go free; and for this act of kindness, as well as for attempts to curb their outlawry, he was pursued and slain by the Baharite mamelukes, who thereupon seized the government.

The leading mamelukes chose one of themselves, the emir Eibek, to be head of the administration. He contented himself at first to govern in the name of Eyyub's widow, who, indeed, had been in complicity with the assassins of her stepson Turan. The Caliph of Bagdad, however, objected to a female reigning even in name, and so Eibek married the widow; and still further to conciliate the Eyyubites of Syria and Kerak, elevated to the title of sultan a child of the Eyyubite stock.

This concession notwithstanding, Nasir the Eyyubite, ruler of Damascus, advanced on Egypt, but, deserted by his Turkish slaves, was beaten back by Eibek, who returned in triumph to the capital. He soon found it, however, impossible to hold the turbulent mamelukes in hand, for, with the victorious general Aktai at their head, they scorned discipline and defied authority. Eibek, therefore, compassed the death of Aktai, on which the Baharite emirs all rose in rebellion. They were defeated. Many were slain and cast into prison; the rest fled to Nasir, and eventually to Kerak. Among the latter were Beibars and Kilawun, of whom we shall hear more hereafter.