His predictions were verified. Muhamad reared the standard of rebellion on the mountains; the seditious and discontented of all kinds hastened to join it, together with soldiers of fortune, or rather wandering banditti, and he had soon six thousand men, well armed, hardy in habits and desperate in character. His brother Casim also reappeared about the same time in the mountains of Ronda, at the head of a daring band that laid all the neighboring valleys under contribution.

Abderahman summoned his alcaydes from their various military posts, to assist in driving the rebels from their mountain fastnesses into the plains. It was a dangerous and protracted toil, for the mountains were frightfully wild and rugged. He entered them with a powerful host, driving the rebels from height to height and valley to valley, and harassing them by a galling fire from thousands of crossbows. At length a decisive battle took place near the river Guadalemar. The rebels were signally defeated; four thousand fell in action, many were drowned in the river, and Muhamad, with a few horsemen, escaped to the mountains of the Algarves. Here he was hunted by the alcaydes from one desolate retreat to another; his few followers grew tired of sharing the disastrous fortunes of a fated man; one by one deserted him, and he himself deserted the remainder, fearing they might give him up, to purchase their own pardon.

Lonely and disguised, he plunged into the depths of the forests, or lurked in dens and caverns, like a famished wolf, often casting back his thoughts with regret to the time of his captivity in the gloomy tower of Cordova. Hunger at length drove him to Alarcon, at the risk of being discovered. Famine and misery, however, had so wasted and changed him that he was not recognized. He remained nearly a year in Alarcon, unnoticed and unknown, yet constantly tormenting himself with the dread of discovery, and with groundless fears of the vengeance of Abderahman. Death at length put an end to his wretchedness.

A milder fate attended his brother Casim. Being defeated in the mountains of Murcia, he was conducted in chains to Cordova. On coming into the presence of Abderahman, his once fierce and haughty spirit, broken by distress, gave way; he threw himself on the earth, kissed the dust beneath the feet of the king, and implored his clemency. The benignant heart of Abderahman was filled with melancholy, rather than exultation, at beholding this wreck of the once haughty family of Yusuf a suppliant at his feet, and suing for mere existence. He thought upon the mutability of fortune, and felt how insecure are all her favors. He raised the unhappy Casim from the earth, ordered his irons to be taken off, and, not content with mere forgiveness, treated him with honor, and gave him possessions in Seville, where he might live in state conformable to the ancient dignity of his family. Won by this great and persevering magnanimity, Casim ever after remained one of the most devoted of his subjects.

All the enemies of Abderahman were at length subdued; he reigned undisputed sovereign of the Moslems of Spain; and so benign was his government that every one blessed the revival of the illustrious line of Omeya. He was at all times accessible to the humblest of his subjects: the poor man ever found in him a friend, and the oppressed a protector. He improved the administration of justice; established schools for public instruction; encouraged poets and men of letters, and cultivated the sciences. He built mosques in every city that he visited; inculcated religion by example as well as by precept; and celebrated all the festivals prescribed by the Koran with the utmost magnificence.

As a monument of gratitude to God for the prosperity with which he had been favored, he undertook to erect a mosque in his favorite city of Cordova that should rival in splendor the great mosque of Damascus, and excel the one recently erected in Bagdad by the Abbassides, the supplanters of his family.

It is said that he himself furnished the plan for this famous edifice, and even worked on it, with his own hands, one hour in each day, to testify his zeal and humility in the service of God, and to animate his workmen. He did not live to see it completed, but it was finished according to his plans by his son Hixem. When finished, it surpassed the most splendid mosques of the east. It was six hundred feet in length, and two hundred and fifty in breadth. Within were twenty-eight aisles, crossed by nineteen, supported by a thousand and ninety-three columns of marble. There were nineteen portals, covered with plates of bronze of rare workmanship. The principal portal was covered with plates of gold. On the summit of the grand cupola were three gilt balls surmounted by a golden pomegranate. At night, the mosque was illuminated with four thousand seven hundred lamps, and great sums were expended in amber and aloes, which were burned as perfumes. The mosque remains to this day, shorn of its ancient splendor, yet still one of the grandest Moslem monuments in Spain.

Finding himself advancing in years, Abderahman assembled in his capital of Cordova the principal governors and commanders of his kingdom, and in presence of them all, with great solemnity, nominated his son Hixem as the successor to the throne. All present made an oath of fealty to Abderahman during his life, and to Hixem after his death. The prince was younger than his brothers, Suleiman and Abdallah; but he was the son of Howara, the tenderly beloved sultana of Abderahman, and her influence, it is said, gained him this preference.

Within a few months afterward, Abderahman fell grievously sick at Merida. Finding his end approaching, he summoned Hixem to his bedside: “My son,” said he, “the angel of death is hovering over me; treasure up, therefore, in thy heart this dying counsel, which I give through the great love I bear thee. Remember that all empire is from God, who gives and takes it away, according to his pleasure. Since God, through his divine goodness, has given us regal power and authority, let us do his holy will, which is nothing else than to do good to all men, and especially to those committed to our protection. Render equal justice, my son, to the rich and the poor, and never suffer injustice to be done within thy dominion, for it is the road to perdition. Be merciful and benignant to those dependent upon thee. Confide the government of thy cities and provinces to men of worth and experience; punish without compassion those ministers who oppress thy people with exorbitant exactions. Pay thy troops punctually; teach them to feel a certainty in thy promises; command them with gentleness but firmness, and make them in truth the defenders of the state, not its destroyers. Cultivate unceasingly the affections of thy people, for in their good-will consists the security of the state, in their distrust its peril, in their hatred its certain ruin. Protect the husbandmen who cultivate the earth, and yield us necessary sustenance; never permit their fields, and groves, and gardens to be disturbed. In a word, act in such wise that thy people may bless thee, and may enjoy, under the shadow of thy wing, a secure and tranquil life. In this consists good government; if thou dost practice it, thou wilt be happy among thy people, and renowned throughout the world.”

Having given this excellent counsel, the good king Abderahman blessed his son Hixem, and shortly after died; being but in the sixtieth year of his age. He was interred with great pomp; but the highest honors that distinguished his funeral were the tears of real sorrow shed upon his grave. He left behind him a name for valor, justice, and magnanimity, and forever famous as being the founder of the glorious line of the Ommiades in Spain.