but simultaneously lost all his Castilian possessions to Alfonso VII. He confirmed a treaty with Castile the next year (1128) with the Peace of Támara, which fixed the boundaries of the two realms. He conquered Molina de Aragón and populated Monzón in 1129, before besieging Valencia, which had fallen again upon the Cid's death. He went north of the Pyrenées in October 1130 to protect the Val d'Aran. Early in 1131, he besieged Bayonne. It is said he ruled "from Belorado to Pallars and from Bayonne to Monreal." At the siege of Bayonne in October 1131, three years before his death, he published a will leaving his kingdom to three autonomous religious orders based in Palestine and politically largely independent - the Knights Templars, the Hospitallers, and the Knights of the Holy Sepulchre, whose influences might have been expected to cancel one another out. The will has greatly puzzled historians, who have read it as a bizarre gesture of extreme piety uncharacteristic of Alfonso's character, one that effectively undid his life's work. Elena Lourie (1975) suggested instead that it was Alfonso's attempt to neutralize the papacy's interest in a disputed succession — Aragon had been a fief of the papacy since 1068 — and to fend off Urraca's son from her first marriage, Alfonso VII of Castile, for the papacy would be bound to press the terms of such a pious testament. Generous bequests to important churches and abbeys in Castile had the effect of making the noble churchmen there beneficiaries who would be encouraged by the will to act as a brake on Alfonso VII's ambitions to break it — and yet among the magnates witnessing the will in 1131 there was not a single cleric. In the event it was a will that his nobles refused to carry out — instead bringing his brother Ramiro from the monastery to assume royal powers — an eventuality that Lourie suggests was Alfonso's hidden intent. His final campaigns were against Mequinenza (1133) and Fraga (1134), where García Ramírez, the future king of Navarre, and a mere 500 other knights fought with him. It fell on 17 July. He was dead by September. His tomb is in the monastery of San Pedro in Huesca. Death Succession The testament of Alfonso leaving his kingdom to the three orders was dismissed out of hand by the nobility of his kingdoms, and possible successors were