In this connexion Yaqui tells a curious story of the opening of one of the tombs by the caliph, which in spite of fabulous incidents, recalling the legend of Roderic the Goth, shows some traces of local knowledge.
In the same year Roderic, the last of the Goths, fell before the victorious Saracens in Spain.
Meanwhile in Spain, after the death of the Gothic king Witiza in the year 90 (708-709), anarchy arose, which was terminated by the council of noblemen at Toledo electing Roderic, the powerful duke of Baetica, to be his successor in the fifth year of Walid.
711 Roderic had been summoned to the north on account of an invasion of Navarra by the Franks, caused, it is said, by the conspirators.
At the news of the invasion Roderic hastened back and led a numerous army against the combined forces of Tariq and the partisans of Witiza.
A fierce battle took place in the plain of Barbata on the little river of Guadaleta (north of Medina Sidonia), in which Roderic was completely routed.
King Roderic, who had escaped to Lusitania, and the noble Goths, who had fled from Toledo, would certainly not be slow in making efforts to regain what they had lost.
After having taken Seville, Carmona and Merida, he marched from the latter place by the Via Romana to Salamanca, after having ordered Tariq to rejoin him in order to encounter king Roderic. Not far from Tamames the king was defeated and killed.
Abdalaziz consolidated his power by marrying the widow of the late king Roderic. Musa left Spain about August 714, and reached Damascus shortly before the death of Walid.
The injured husband called to his aid Roderic, the high king (airdrigh) of Connaught; and in 1166 Dermot fled before this powerful coalition to invoke the aid of England.