I read the Poem of El Cid decades ago. the ending of the movie is taken from the poem.
It’s definitely not something Merrick Garland would appreciate.