Next year the King of Morocco returned to Spain with his army, and exhorted the Moors of Andalusia to unite with him in a war of extinction. The petty sovereigns showed but little enthusiasm for a campaign. Probably they distrusted Yussuf's motives. Such suspicion was not without a basis, for when the Almoravides came for the third time, the monarch plainly stated that he purposed to annex all the remaining Mohammedan region. With a hundred thousand men, Yussuf took Seville and Granada. Alfonso came to the assistance of the Sevillians with a force of twenty thousand; but the Almoravides seized the city, and held it until the days of the Almohades in 1147.

Alfonso then sought the alliance of France to assist his nation in expelling the African invaders. But the power of the Almoravides grew. Córdova was their seat of government, and Seville was one of their most important cities. The Moriscoes in Spain were no longer an independent race, but under the sway of Morocco. Motamid II. doubtless rued the hour when he sought aid from Yussuf. Fair Seville had passed out of his hands.

At this time there arose the famous Cid, the revered warrior and type of Spanish chivalry. Many are the legends and ballads extolling the bravery of this champion of Christendom. Some of the stories of his deeds are so improbable that certain historians of Spain have regarded the hero as a character of fable; but Professor Dozy has investigated the old chronicles, both Spanish and Moorish, and reached the conclusion that there was a Cid, a mighty soldier and a devout Catholic, named Rodrigo Diez de Bivar. There is no doubt that the Cid loved the field of battle from his youth, and that he was ever ready to fight, sometimes for the Christians, and sometimes for Moorish chieftains at war with one another. In the end he became a valorous freebooter, with a following of the sons of noble families. The Cid came at least on one occasion to Seville as an emissary of King Alfonso to Motamid, to collect sums due from the Arab ruler. Motamid was then at strife with Abdallah, King of Granada, who was assisted by certain Christian caballeros, including Garci Ordoñez, formerly standard-bearer to Fernando. The Cid endeavoured to restrain the King of Granada from making war upon Motamid's city, but Abdallah was not to be influenced for peace. He went forth and was met by the combined armies of the Cid and Motamid of Seville, and defeated with much loss. Ordoñez and the Christian cavaliers were taken prisoners. The Cid took his tribute, and certain costly gifts for Alfonso from Motamid, and departed. Soon after this episode in Andalusia, Alfonso heard that Rodrigo, the Cid, had retained some of the presents sent by the King of Seville. This report was set going by Garci Ordoñez in revenge for his defeat at the hands of the Cid and Motamid, and the tale was credited by King Alfonso. There was already prejudice against the Cid in the royal mind, and Alfonso was still further displeased when his general went to attack Abdallah without permission. When he heard that, to crown all, the Cid had exhibited dishonesty, Alfonso was wroth, and banished Rodrigo from the kingdom. But the Cid gained immense power and homage as an independent sovereign, and when Alfonso was in sore need of a general to fight for him against the Almoravides, he approached the gallant Rodrigo with assurances of friendliness, and solicited his aid. Perhaps the missive of Alfonso went astray; at anyrate, the Cid did not at once respond to the King's call for help. This apparent apathy incensed Alfonso. Again he sought to punish the Cid, confiscating his estates and imprisoning his wife and children. And again the invincible Rodrigo proclaimed himself a king on his own account. He died in 1099, and at his death his territory was taken by Yussuf, the Almoravide. The Cid's bridle, worn by his steed, Babieca, hangs in the Capilla de la Granada, in the south-east corner of the Court of the Oranges at Seville.

The Almoravides appear to have been an exceedingly energetic and turbulent race. They were, indeed, too fond of warfare, for they were constantly fighting amongst themselves when they were not at war with the Christians. Under their dominion every ruler of a city who could raise troops called himself sovereign, and made attack upon the governor of the nearest wealthy centre. The Almoravide rule was not so just and prudent as that of the Moors who preceded them, and the people groaned under its despotism. Conquest by the Almohades came as a redemption from the tyranny of the Almoravides.

In Northern Africa, the land of prophets and of new sects, Mohammed, son of Abdalla, proclaimed himself the Mehdi, and gained the adherence of a great horde of devotees. These Unitarians were even more fervent in piety than the Almoravides. The Mehdi's general, Abdelmumen, soon became the victor of Moorish Spain. Seville was secured by the invaders in 1147, and remained under the Almohade rule till 1248. The Almohades built the great mosque, with its high minaret, part of the structure being formed of stonework of the Roman period; the Alcázar, a huge palace, which extended as far as the bank of the Guadalquivir to the Golden Tower, and many other magnificent edifices. The palace of the Moorish sovereigns at Seville was erected in the form of a triangle, with the chief gate at the Torre de la Plata (Silver Tower), which stood in the Calle de Ataranzas until 1821, when it was taken down.

Trade revived in the city after its capture by the Almohades; the weavers, the metal-workers, and the builders and the decorators of houses found constant employment under the new ruler, Abu Yakub Yussuf. The Christian Spaniards saw a revival of the Mohammedan fortunes, and lamented the influx of this vigorous infidel host. Earnest prayers were addressed to the knights of the Cross in all the nations of Europe beseeching succour for the faithful in Spain. Pope Innocent III. declared a crusade, and called upon foreign Christian rulers to aid the Spaniards, with the result that a number of French and English crusaders travelled to Spain. A memorable battle was fought in the Sierra Morena, the range dividing Castile from Andalusia, and the Almohade army was almost destroyed. After this repulse the Moors never made a military demonstration of any importance in Castile, but remained in Andalusia and the southern districts. Seville and Córdova each had a different governor; the Almohade unity was ruptured, and the empire was crumbling.

We have now reached the last days of the Morisco rule in Seville. The deliverer, Fernando III., the adored Saint Fernando, came to the throne at an auspicious hour, and upon his accession made ready for war upon the Mohammedans. In 1235 Córdova was taken by Fernando, and Jaén and other towns fell into his hands. Assisted by Aben Alhamar, King of Granada, who had been compelled to yield allegiance to the victorious Fernando, the Christian monarch marched upon Seville. The inhabitants prepared for a stubborn defence. A Moorish fleet guarded the mouth of the Guadalquivir, while the troops of the Almohades awaited attack within the city. Fernando sent war vessels from the Biscayan coast to San Lucar to attack the Moorish fleet. The navy was in the command of Admiral Raymond Boniface (Ramon Bonifaz), and in an engagement the Moorish ships were driven from their position. Bonifaz lived in Seville after the capture of the town. On the front of a house in Placentines, now the shop of a dealer in antiquities, there is this inscription in Spanish and French: 'Esta casa fué cedida por el Santo Rey D. Fernando III. à su almirante D. Ramon Bonifaz cuando conquesto à Sevilla libertando del dominio Sarraceno.'

The infidels next made a stand on land, but failed to overcome the army of Fernando. For fifteen months Seville was besieged. Provisions were brought into the town from the surrounding district of Axarafa, thirty miles long, on the right bank of the Guadalquivir. This highly-cultivated region is said to have contained a hundred fertile farms. Seville was connected with the suburb of Triana (the town of Trajan) by a bridge of boats and a chain bridge. The boat-bridge was broken by Fernando during the siege by launching heavy vessels upon it. But still the defenders held out behind their high, broad walls, driving back the charges of the Christians against the sturdy gates, and raining missiles from the towers. At length, when Triana and Alfarache were in the hold of Fernando's force, and all food supplies cut off, the defenders were forced to yield. On 23rd November Fernando made a triumphal entry. The vanquished ruler, Abdul Hassan, who had proved a most courageous defender, was offered territory and money if he would continue to live in Seville, or in a city of the kingdom of Castile, as a dependent officer of the King. The Moor proudly rejected these terms; he preferred to leave the scene of his defeat, and with thousands of his people he departed for Africa. It is stated that three or four hundred thousand Moors had quitted Seville before its capture. If this is true, only a few Almohades remained in the place. Those who elected to stay were bade to render the same tribute to Fernando as they had been in the habit of paying to their princes. Such as desired to return to their country were offered the means of travelling and protection.

The triumphant King, escorted by his troops, the loyal inhabitants and the clergy, proceeded to the mosque. Christian bishops purified the temple, and dedicated it to the service of God and the Virgin, and a high and imposing Mass was celebrated. Amid festivities and ceremonies, Fernando took possession of Seville and all its rich treasure. He occupied the Alcázar, then in its pristine splendour, and divided the houses and land around the city among his knights.

The Christian King was brave, and his treatment of the conquered shows that he had a strain of mercy in his nature. He was, however, an intensely bigoted pietist, for at Palencia he set fire with his own hands to the faggots to burn heretics. His austerities were excessive, and fasting is said to have weakened his body. Fernando died from dropsy at Seville, four years after his conquest of the town. On his deathbed he called his son Alfonso, bade him farewell, and exhorted him to follow justice and clemency. Then, amid deep sorrow in the city, the King took the Mass, and passed away. In 1671 Fernando III. was canonised by Pope Clement X.