Even after the death of her husband Ramon Berenguer IV, the titles of Petronilla were Queen of Aragon and
Countess of Barcelona in the document about her abdication in 1164. Her eldest son was seven years old when, on 18 June 1164 (
Actum est hoc in Barchinona XIIII kalendas julii anno Dominice incarnationis M C LXIIII), Petronilla abdicated the throne of Aragon and passed it to him. When Raymond Berenguer inherited the throne from his mother, he changed his name to Alfonso out of deference to the Aragonese. The second son, named Peter, then changed his name to Raymond Berenguer. Her son and heir was only seven years old when she abdicated in his favor, and so she continued to rule after her abdication, this time acting as his regent during his minority. Petronilla died in
Barcelona in October 1173 and was buried at
Barcelona Cathedral; her tomb has been lost. After her death, Besalú and Vall de Ribes reverted to the direct domain of the count of Barcelona, her son Alfonso, who by 1174 had bestowed Besalú on his wife,
Sancha. In the Ribes, the local bailiff, Ramon, had carved out for himself "a virtually independent administrative authority" there. He had conducted an inventory for Petronilla after Raymond Berenguer's death, and his son and namesake was in power in 1198. ==Legacy==