 This had proved unworkable and two divisions of the realm (1079 and 1080) had granted the Diocese of Vic, in which lay Ripoll, to Ramon Berenguer.The bishop of Vic, Berenguer Sunifred de Lluçà, was among Ramon's supporters.The "Carmen" was probably written by supporters of Ramon to celebrate his brother's defeat at the hands of the Cid, on the eve of civil war in Catalonia.