It was a question whether Egypt would fall to the Christian king of Jerusalem or the Moslem king of Damascus; but, after several invasions by both, Nur-ed-din settled the problem by sending his Syrian army to Cairo in 1169, when the Crusaders withdrew without offering battle, and the Fatimid caliphate came to an end in 1171.

On the Syrian general's death, two months after the conquest, his nephew, Salah-ed-din ibn-Ayyub (Saladin), succeeded to the vezirate, and after Nur-ed-din's death, in 1174, he made himself independent sultan, not only of Egypt but of Syria and Mesopotamia. Saladin was a Kurd from the Tigris districts; but his training and his following were purely Turkish, moulded on the Seljuk model, and recruited largely from the Seljuk lands. His fame was won outside Egypt, and only eight of the twenty-four years of his reign were spent in Cairo; the rest was passed in waging wars in Syria, Mesopotamia, and Palestine, culminating in the catastrophic defeat of the Crusaders near Tiberias in 1187, and the conquest of Jerusalem and all of the Holy Land.

The famous crusade of Richard I., though it resulted only in recovering a strip of coast from Acre to Jaffa, and did not rescue Jerusalem, wore out Saladin's strength, and in 1193 the chivalrous and magnanimous "Soldan" died. In Egypt his chief work, after repressing revolts of black troops and Shia conspiracies, and repelling successive naval attacks on Damietta and Alexandria by the Eastern emperor and the kings of Jerusalem and Sicily, was the building of the Citadel of Cairo after the model of Norman fortresses in Syria, and the encouragement of Sunni orthodoxy by the founding and endowment of medresas, or theological colleges. The people, who had never been really converted to the Fatimid creed, accepted the latest reformation with their habitual nonchalance. This was really the greatest achievement of Saladin and his house. Cairo succeeded to Baghdad and Cordova as the true metropolis of Islam, and Egypt has remained true to the most narrow school of orthodoxy ever since.

Saladin's kinsmen, known as the Ayyubid dynasty, ruled Egypt for over half a century after the death of their great leader. First his politic brother, Adil Seyf-ed-din ("Saphadin") carried on his fine tradition for a quarter of a century, and then from 1218 to 1238 Seyf-ed-din's able son Kamil, who had long been the ruler of Egypt during his father's frequent absences, followed in his steps. The futile efforts of the discredited Crusaders disturbed their peace. John of Brienne's seizure of Damietta was a serious menace, and it took all Kamil's energy to defeat the "Franks" at Mansura (1219) and drive them out of the country.

On the other hand, he cultivated very friendly relations with the Emperor Frederic II., who concluded a singular defensive alliance with him in 1229, to the indignation of the Pope. He was tolerant to Christians, and listened to the preaching of St. Francis of Assisi; he granted trading concessions to the Venetians and Pisans, who established a consulate at Alexandria. At the same time he notably encouraged Moslem learning, built colleges, and developed the resources of the kingdom in every way. What had happened to the dynasties of Tulun, Ikhshid, and the Fatimides, was repeated on the death of Kamil. Two sons kept the throne successively till 1249, and then, in the midst of Louis IX's crusade, the salvation of Egypt devolved on the famous Mamluks, or white slaves, who had formed the corps d'élite of Saladin's army.

V.--The Mamluks

Political women have played a great rôle in Egypt from Hatshepsut and Cleopatra to the Christian wife of Aziz, the princess royal who engineered the downfall of Hakim, and the black mother who dominated Mustansir; and it was a woman who was the first queen of the Mamluks. Sheger-ed-durr ("Tree of Pearls"), widow of Salih, the last reigning Ayyubid of Egypt, was the brain of the army which broke the chivalry of France.

At the second battle of Mansura in 1249, she took Louis prisoner. Then she married a leading Mamluk emir, to conciliate Moslem prejudice against a woman's rule, and thenceforth for more than two centuries and a half one Mamluk after another seized the throne, held it as long as he could, and sometimes transmitted it to his son. When it is noted that forty-eight sultans (twenty-five Bahri Mamluks, or "white slaves of the river," so called from the barracks on an island in the Nile, and twenty-three Burgis, named after the burg, or citadel, where their quarters originally were), succeeded one another from 1250 to 1517, it will be seen that their average reign was but three and a half years. The throne, in fact, belonged to the man with the longest sword.

The bravest and richest generals and court officials surrounded themselves with bands of warrior slaves, and reached a power almost equal to the reigning sultan, who was, in fact, only primus inter pares, and on his death--usually by assassination--they fought for his title. All were alike slaves by origin, but this term implied no degradation. Any slave with courage and address had the chance of becoming a freedman, rising to influence, and climbing into his master's seat. Every man was every other man's equal--if he could prove it; but the process of proving it often turned Cairo into a shambles.

The Mamluks were physically superb, a race of born soldiers, dashing horsemen, skilled leaders, brilliant alike in battle and in all manly sports. They were at the same time the most luxurious of men, heavy drinkers, debauched sensualists, magnificent in their profusion, in their splendid prodigality in works of art and luxury, and in the munificence with which they filled their capital with noble monuments of the most exquisite Saracenic architecture. Most of the beautiful mosques of Cairo were built by these truculent soldiers, all foreigners, chiefly Turks, a caste apart, with no thought for the native Egyptians whose lands they received as fiefs from the sultan; with no mercy when ambition called for secret assassination or wholesale massacre; yet fastidious in dress, equipment, and manners, given to superb pageants, laborious in business, and fond of music and poetry. Their orthodoxy is attested not only by their innumerable religious foundations and endowments, but by their importing into Cairo a line of Abbasid caliphs--fainéants indeed, but in a manner representative of the great caliphs of Baghdad, extinguished by the Mongols in 1258--and in maintaining them till the Ottoman sultan usurped their very nominal authority as Commanders of the Faithful.