 Scholars have dated the poem as early as 1083 (after the battle of Almenar in 1082) and as late as "c".1100.The motive of a Catalan monk in writing about a Castilian hero has been explained by the date of 1083 and the politics of Catalonia at that time.Since 1076 the brothers Berenguer Ramon II and Ramon Berenguer II had been trying to rule Catalonia jointly in accordance with their late father's wishes.