But the fortune of war is fickle. The troops of the Cid were defeated at last by the invaders; and the Campeador died of grief in July, 1099. They took his body and embalmed it, and kept vigil by its side; then, in the legend of the poets, they did as the Cid had bidden them: they set him upon his good horse Bavieca, and fastened the saddle well, so that he sat erect, with his countenance unchanged, his eyes bright and fair, and his beard flowing down his breast, and his trusty sword Tizona in his hand. No one would have known that he was dead. And they led Bavieca out of the city: Pero Bermudez in front with the banner of the Cid and five hundred knights to guard it, and Doña Ximena behind with her company and escort. Slowly they cut a path through the besiegers, and took the road to Castile, leaving the Moors in sore amazement at their strange departure: for they did not know that the Cid was dead. But the body of the hero was set in an ivory chair beside the great altar of San Pedro de Cardeña, under a canopy whereon were blazoned the arms of Castile and Leon, Navarre and Aragon, and of the Cid Campeador. Ten years the Cid sat upright beside the altar, his face still noble and comely, when the signs of death at last began to appear; so they buried him before the altar, where Doña Ximena already lay; and they left him in the vault, still upright in the ivory chair, still in his princely robes with the sword Tizona in his hand,—still the great Campeador whose dinted shield and banner of victory hung desolate over his tomb.

XII.
THE KINGDOM OF GRANADA.

WITH such soldiers as the Cid, and such kings as Fernando and Alfonso, the recovery of all Spain by the Christians was only a matter of time. Every nation, it appears, has its time of growth and its period of efflorescence, after which comes the age of decay. As Greece fell, as Rome fell, as every ancient kingdom the world has known has risen, triumphed, and fallen, so fell the Moors in Spain. Their time was now near at hand. They had been divided and undisciplined before the Almoravide annexation: they were not less so when their Berber masters had been expelled. But hardly had the Almoravides disappeared, when a new enemy came on the scene. The Almohades, or fanatical "Unitarians," who had overthrown the power of the Almoravides in Africa, resolved to imitate their vanquished predecessors by including Andalusia in their empire. The dissensions among the princes of the long-shattered kingdom of the Moors made the task an easy one. In 1145 the Almohades took Algeciras; in 1146 they occupied Seville and Malaga, and the next four years saw Cordova and the rest of southern Spain united under their sway. Some princes, indeed, held out for a while, but the hordes of African fanatics were too overpowering for any single chief to make a protracted stand against them.

The Almohades, however, had no thought of making Andalusia the centre of their government. They ruled it from Africa, and the consequence was that their hold upon Spain was weak. The disturbed provinces of Andalusia were not easily to be retained by princes who contented themselves with deputies sent from Morocco, and with an occasional expedition to repel the attacks of the Christians. When they came in force their efforts were generally crowned with success. They won a splendid victory over the Christians in 1195 at Alarcos, near Badajoz, where thousands of the enemy were slain, and immense spoils fell into the hands of the fanatics. But the fortune of war changed when, in 1212, the disastrous field of Las Navas decided the fate of the Almohades. Of 600,000 men, few escaped to tell the tale of slaughter. City after city fell into the hands of the Christians; and family dissensions among the foreigners, and the attacks of rival dynasties in Africa, enabled the chiefs of Andalusia, who had grown impatient of the spasmodic rule of their foreign masters, in 1235, to drive the Almohades out of the peninsula. An Arab chief, Ibn-Hūd, then made himself master of most of the south of Spain, and even of Ceuta in Africa; but he died in 1238, and the command of Andalusia now devolved upon the Beny-Nasr of Granada.

The kingdom of Granada was the last bulwark of the Moors in Spain. It was not much that was now left to them. Between 1238 and 1260, Fernando III. of Castile and Jayme I. of Aragon conquered Valencia, Cordova, Seville, and Murcia; and the rule of the Moors was now restricted to the present province of Granada, i.e., the country about the Sierra Nevada and the sea coast from Almeria to Gibraltar. Within this limit, however, their kingdom was destined to endure for another two centuries and a half. Though hemmed in on all sides, the Moors were well served by soldiers. The people of the conquered cities, the most valiant warriors of the vanquished Moslem states, came to place their swords at the disposal of the one remaining Mohammedan king. Fifty thousand Moors are recorded to have fled to his protection from Valencia, and three hundred thousand from Seville, Xeres, and Cadiz. Nevertheless, Granada was forced to become tributary to the Castilian crown. The founder of the dynasty of the Beny-Nasr, an Arab named Ibn-el-Ahmar, or the "Red man," because of his fair skin and hair, was a vigorous sovereign, but he could not withstand the power of the Christians, who now held nearly the whole of Spain. He paid homage and tribute to Fernando and his son Alfonso the Learned, not, however, without more than one struggle to free himself from their yoke; and from that time forward Granada with its surrounding territory was generally let alone by the Christian kings, who had enough to do to settle their already vast acquired territory and to do away with local pretenders. From time to time the Moors made war upon their Christian neighbours, but eventually they had to make up their minds to a secondary position. The sum of twelve thousand gold ducats was the tribute paid by Mohammed X., in 1463, as a condition of peace. During these two centuries the Moorish territory had suffered little diminution. Gibraltar had been lost and won and lost again; other places, notably Algeciras, had become part of the Christian dominions; but the general extent of the Moslem realm remained in the third quarter of the fifteenth century much what it had been in the first half of the thirteenth.