Rodrigo Díaz de Vivar (AD. 1043 – July 10, 1099), known as El Cid Campeador (Spanish pronunciation: [el θið kampeaˈðor], "The lord-master of military arts"), was a Castilian nobleman, military leader, and diplomat. Exiled from the court of Alfonso VI of León and Castile, El Cid went on to command a Moorish force consisting of Muladis, Berbers, Arabs and Malians, under Yusuf al-Mu'taman ibn Hud, Moorish king of the northeast Al-Andalus city of Zaragoza, and his successor, Al-Mustain II.
After the Christian defeat at the Battle of Sagrajas, El Cid was recalled to service by Alfonso VI, and commanded a combined Christian and Moorish army, which he used to create his own fiefdom in the Moorish Mediterranean coastal city of Valencia.