It was Galib's intention to continue the policy of previous caliphs, Abd ar-Rahman III and al-Hakam II, which was to maintain supremacy over the Christian principalities in peace.
[5][6] The octogenarian Galib, riding a horse and wearing a tall helmet, himself led the initial charge against the Berbers, who immediately broke ranks and fled.
Having dispersed both of Ibn Abi ‘Amir's flanks, Galib reportedly prayed that God would aid whoever was better suited to lead the Muslims.
Galib's remaining Muslim troops panicked and fled in the direction of Atienza, pursued the whole way by the Ibn Abi ‘Amir's forces.
[7] Ibn Abi ‘Amir followed his victory by taking Atienza and Calatayud (Qalat Ayub), the centres of Galib's support, and directing a razzia into Castile.
[7] After seventy-eight days of campaigning, he returned to Córdoba in triumph on 27 July, taking the caliphal honorific al-Manṣūr bi-llāh (meaning "victorious through God").
The well-known difficulties of Arab historiographers in tracking the various Sanchos and Garcías of the Navarrese royal family have led some scholars to conclude that Sánchez is an error for Garcés.
[8] A document of 15 August 981 records the donation of Sancho II of Pamplona and Urraca Fernández to Abbot Eximino of the monastery of Leyre, where Ramiro was already buried, the property in the village of Apardués that he had possessed in life, his palaces and belongings both movable and immovable.