Others put forward included Alfonso VII of Castile, who as a foreign king found little support, and the choice of the Navarrese nobility, Pedro de Atarés, grandson of Sancho Ramírez, Count of Ribagorza, the illegitimate son of Ramiro I of Aragon.
At an assembly at Borja intended to resolve the succession, a misunderstanding alienated Pedro from his supporters, yet they were unwilling to accept the Aragonese-favored Ramiro, and in the end the kingdoms were divided.
[1] The marriage contract, signed at Barbastro on 11 August 1137, made Petronilla the heir to the crown of Aragon, which in event of her childless death would pass to Ramon Berenguer and any children he might have by other wives.
[2] The previously-landlocked Aragonese state thus returned to the position of peninsular power it had held prior to the loss of Navarre, and received a window to the Western Mediterranean it would come to dominate.
In the time between his accession and the betrothal of his daughter, Ramiro II had already had to put down a rebellion of the nobles, and knowing himself not to be a war king, he passed royal authority to his son-in-law Ramon Berenguer on 13 November 1137.