El Cid is a historical epic poem written in the early 12th century. The poem tells the story of the life of the Spanish national hero, Rodrigo Díaz de Vivar, better known as El Cid.
There are many historical records of Rodrigo Diaz de Vivar, and it is believed that the poem is based on his life. However, there are also some embellishments and fictional elements in the story. For example, the real El Cid did not marry the princess Ximena, as he is said to do in the poem.
Overall, while parts of the story may not be historically accurate, the poem provides a glimpse into the life of a fascinating figure from Spanish history.