Seljuq dynasty
Sancho Ramírez probably participated in the Reconquista as can be inferred from his father's first will executed on 29 July 1059 when the king included him as one of his heirs if he returned from the "land of the Moors". In his second will dated 15 March 1061, his father left him Aibar and Javierrelatre "with all its villas". In 1092, when he was already in his fifties, he went on a pilgrimage to Jerusalem which at that time was occupied by the Seljuq dynasty. He was a generous patron of several religious establishments such as a church in Lasieso, San Salvador de Javierrelatre, and Jaca Cathedral where he commissioned the construction of a chapel for his burial.