Alonzo flew into a great passion, and summoned the Cid to his presence, and glad of an opportunity of vexing him, ordered him to leave the country of Castille for ever, and all the fair domains he possessed.

When the sentence was passed the Cid's cousin, Alvar Fanez, and all his friends, kinsmen, and vassals, declared that if he must needs quit the land they would follow him into his exile and remain faithful to him all the days of their life. This comforted Ruy Diaz, although he did not desire that so many of those he loved should condemn themselves to wander in the land of the Moors for his sake. He sent his wife Ximena, and his two little daughters, Elvira and Sol,[8] to the convent of Saint Peter, of Cardeña, where they would be safe; and one sad day he bade farewell to his home in Castille and set out on his wanderings, the king having granted him nine days for his journey out of the country.

The costly furniture of his palace in Burgos had been all stored away; there were no people coming and going; no voices of children gladdened the empty halls; the birds were all gone from the perches, there would be no more pleasant pastime of hawking, the whole place was silent and desolate.

When the Cid saw this he knelt down and turned towards the east, and prayed that he might be victorious over the Moors, and gain enough to requite his friends for their devotion. Then he turned to the whole company and cheered them with the hope that he might yet be able to return to Castille in honour. And an old woman, who stood by the door, repeated the Spanish proverb, "Go in a lucky moment, and you shall make spoil of whatever you desire."

The mausoleum of the Cid now occupies the spot where his palace stood, and his statue ornaments the gate of Saint Maria, which is the principal entrance into the city of Burgos, and opens on to one of the bridges leading out into the suburb called Vega.

As Ruy Diaz came with his people through the streets of Burgos, the citizens wept aloud; they were so grieved to see him depart, and to know that no house might afford him shelter even for one night. So when the dark came he was obliged to have a tent raised on the sandy plain and rest for a while there.

At last he got to the convent of Cardeña, and bade a long farewell to his wife and daughters, giving them a hundred marks of gold for their expenditure; and before he left he gave the Abbot fifty marks of silver, and commended his family to his care, for he did not feel sure that he should ever see them again. Then he pursued his journey, travelling all night because he had a long and difficult way to go before he could get to the land of the Moors. The next day but one they crossed the river Douro in wooden boats, and rested at a place called Figueruela. And there in the night he either dreamed or had a vision of an angel coming to him who said, "Cid, be of good cheer, for it shall be well with thee all thy life long; and thou shalt accomplish all that thou shalt undertake, and shalt become rich and honoured." The Cid thought very much on what he had heard, and he arose and gave thanks for the mercy that had befallen him. The following day he reached the wild Sierra, of Miedes, and he said, "Friends, let us mount our horses quickly, and cross the Sierra and go out of the kingdom of Don Alonzo, for this is the ninth day, and it is time we were gone." So they passed the Sierra in the dark night and then they were in the country of the Moors. The whole company of the Cid amounted to 400 horsemen, and 3,000 foot. They travelled by night, and hid by day until they reached the Castle of Castregon. Ruy Diaz concealed himself and his friends close by, and in the morning the Moors, not knowing they were there, came out of the Castle gates to go to their work; the Spaniards rushed suddenly upon them, slaying some and dispersing the rest, and soon got possession of the castle where they found a quantity of gold and silver. But they could not stay in it because there was no water, and besides this, the Moors all around were vassals of Don Alonzo. So the Cid left the Moors there whom he had taken prisoner in the skirmish, and went further on his way to meet with fresh adventures. During the whole time of his exile he remained loyal to the king who had so unjustly treated him, and did him good service, for he took many strong castles from the Moors, and either drove the invaders out of the land or made them subject to Castille. He shared with his company all the rich spoils he won, and after many brave exploits determined to send his cousin Alvar to Alonzo with a present of thirty Arab horses, and a message entreating him to restore him to his favour, and to give back to his friends the estates they had lost by following him into his exile.

When the king saw the beautiful Arab horses, each with a fine sword mounted in silver hanging from its saddle, his face brightened, and he could not bring himself to refuse the gift. Still he thought it was too soon yet to pardon the mighty Cid, and only restored to his friends and relations their lands.

Ruy Diaz got as far as the district of Ternel in Arragon, and there he settled himself in a fortress on a high rock which has been called ever since "The Rock of the Cid." From this stronghold he sallied forth from time to time against the Moors, and forced numbers of them to pay tribute. And besides overcoming the Moors, he served the king by punishing some great Spanish lords who had been guilty of treason, and Alonzo at last desired him to return to the court. The Cid waited yet to take the strong Castle of Rueda from the Moors, and then he came back to Castille in honour, as he had hoped on the sorrowful day when he left Burgos. All the king's displeasure passed away when Ruy Diaz came before him and delivered into his hands the rich treasures he had captured, and Alonzo gave him many castles, and the right of keeping in future all the places he should win from the Moors for himself.

Ruy Diaz was chosen to lead the Spanish army against Toledo in the year 1032. This city was possessed by the Moorish king Yahia, and was considered so important a place, that all the Christian sovereigns in Spain made up their quarrels, and joined together to besiege it. Yahia held out for three years, and then only yielded up the city on condition that he should reign over Valencia instead. The first Christian banner that entered Toledo was the banner of the Cid. A story is told by the Spaniards how, when the army had to cross a ford of the Tagus, that they might get nearer the city, and the river was so swollen that the horsemen feared to plunge into it, a monk of the order of St. Benedict rode over first on an ass, after which the whole army passed over in safety.