Rodrigo Díaz de Vivar (about 1043 – 1099 AD), known as El Cid, was a Castilian nobleman. He was a military leader in medieval Spain. After his death, he became the hero in a mediaeval Spanish poem, "El Cantar de mio Cid".