 Ramiro never formally resigned his royal rights, continuing to use the royal title, and keeping aware of the business of the kingdom, he withdrew from public life, returning to the Abbey of San Pedro in Huesca.He later became known for the famous and passionate legend of the Bell of Huesca.He died there on 16 August 1157, the crown then formally passing to his daughter Petronilla.