To keep his promise, Abeniaf finally hauled some of the Moors up over the walls by means of ropes, and the presence of these foes in their midst compelled the Moors who favored the Cid to leave the city in disguise, thus allowing Abeniaf and his allies to plunder right and left and even to murder the Moorish king. This done, Abeniaf himself assumed the regal authority, and began to govern the city in such an arbitrary way that he soon managed to offend even his own friends.
Meantime the Moors who had fled rejoined the Cid, and, when they reported what had occurred, Rodrigo wrote to Abeniaf, reproaching him for his treachery and demanding the surrender of the property he had left in town. Because Abeniaf replied that his allies had taken possession of it, the Cid termed him a traitor and swore he would secure revenge. Thereupon our hero set out with an army, and, finding himself unable to take the city by assault, began to besiege it, pulling down the houses in the suburbs to secure necessary materials to construct his camp. Then he began a systematic attack on the city, mastering one of its defences after another, and carrying on the siege with such vigor that he thereby won additional glory. All the Moorish captives taken were sent out through his lines into the open country, where they were invited to pursue their agricultural avocations, and assured protection, provided they would pay tribute of one-tenth of the produce of their lands.
Meantime the people in the besieged city suffered so sorely from hunger, that they finally sent word they would treat with the Cid if he would allow Abeniaf and his followers to leave the country unharmed. The Cid having consented to this proposal, the invading Moors withdrew to Morocco, whence, however, they soon returned in increased numbers to recapture Valencia and take their revenge upon Abeniaf, who had proved treacherous to them too. To check the advance of this foe, the Cid flooded the country by opening the sluices in the irrigation canals, and the invaders, fancying themselves in danger of drowning, beat a hasty retreat. Because Abeniaf took advantage of these circumstances to turn traitor again, the Cid besieged him in Valencia for nine months, during which the famine became so intense that the inhabitants resorted to all manner of expedients to satisfy their hunger.
Throughout this campaign the Cid ate his meals in public, sitting by himself at a high table and assigning the one next him to the warriors who won the most distinction in battle. This table was headed by Alvar Fanez, surrounded by the most famous knights. A notorious coward, pretending to have done great deeds, advanced one day to claim a seat among the heroes. Perceiving his intention, the Cid called him to come and sit with him, whereupon the knight became so elated that when he again found himself on the field of battle he actually did wonders! Seeing his efforts, the Cid generously encouraged him and, after he had shown himself brave indeed, publicly bade him sit with the distinguished knights.