as a vassal and withdraw from direct rule as regent for her son García Sánchez I. In 937 Abd al-Rahman conquered some thirty castles in León. Next he turned to Muhammad ibn Hashim al-Tugib, governor of Zaragoza, who had allied with Ramiro but was pardoned after the capture of his city. Despite early defeats, Ramiro and García were able to crush the caliphal army in 939 at the Battle of Simancas, and almost kill Abd al-Rahman, due to treason by Arab elements in the caliph's army. After this defeat, Abd al-Rahman stopped taking personal command of his military campaigns. His cause was helped, however, by Fernán González of Castile, one of the Christian leaders at Simancas, who subsequently launched a sustained rebellion against Ramiro. The victory of Simancas enabled the Christian kingdom to maintain the military initiative in the peninsula until the defeat of Ramiro's successor, Ordoño III of León, in 956. However, they did not press this advantage as civil war broke out in the Christian territories. In 950 Abd al-Rahman received in Córdoba an embassy from count Borrell II of Barcelona, by which the northern county recognized caliphal supremacy in exchange for peace and mutual support. In 958, Sancho, the exiled king of León, King García Sánchez of Pamplona, and his mother Queen Toda all paid homage to Abd al-Rahman in Córdoba. Until 961, the caliphate played an active role in the dynastic strife characterising the Christian kingdoms during the period. Ordoño III's half-brother and successor, Sancho the Fat, had been deposed by his cousin Ordoño IV. Together with his grandmother Toda of Pamplona, Sancho sought an alliance with Córdoba. In exchange for some castles, Abd al-Rahman helped them to take back Zamora (959) and Oviedo (960) and to overthrow Ordoño IV. Later years Abd al-Rahman was accused of retreating in his later years into the "self-indulgent" comforts of his harem. Indeed, he is known to have openly kept a male as well as a female harem (common with a few previous rulers such as Hisham II and Al-Mu'tamid). This likely influenced the polemical story of his sexual attraction for a 13-year-old boy (later enshrined as a Christian martyr and canonised as Saint Pelagius of Córdoba) who refused the Caliph's advances. This story may have been a construct on top of an original tale, however, in which he ordered the boy-slave to convert to Islam. Either way, enraged,