in that same year, aragon and navarre experienced a succession crisis, as talesa's cousin alfonso the battler died without heirs and leaving a testament by which his realm was to pass to the military religious orders. the two kingdoms split and the throne of aragon was contested by ramiro the monk, the dead king's brother, and alfonso vii of león, a more distant relative. talesa sided with ramiro, who in turn surrendered to her the lordships of (a part of) zaragoza and uncastillo which he had inherited from gaston. after papal intervention, the conflict was finally settled in favour of raymond berengar iv of barcelona, who, to recover good relations with béarn, granted talesa the fiefs of huesca and bespen with rights over the basilica of our lady of the pillar in zaragoza, where gaston lay buried. he also gave peter ii a catalan princess for a bride and thus brought béarn within the catalan sphere of influence.