Battle of Cabra
The Battle of Cabra took place in 1079 in southern Iberia between two Islamic states, Granada and Seville. Each side was aided by Castilian knights under Alfonso VI. It resulted in a victory for El Cid, who routed the invading forces of Emir Abd Allah of Granada and his Christian allies led by Count García Ordóñez. El Cid captured Ordóñez and other Christian knights and held them for three days until releasing them to return to Castile.
Following this, in the battle of Coria, Alfonso VI defeated the Muslim Emir of Badajoz, Al-Mutawwakkil.
Al-Mutawwakkil renounced control of Toledo, and al-Qadir was reinstated. A Leonese garrison was established at Zorita to the east of Toledo.