The episcopal see was established in Jaca during 1063–1096, then moved back to Huesca after king Pedro I of Aragon retook the city from the Moors in November 1096.
A religious and civil festival is held on the first Friday of May, locally referred to as "Primer Viernes de Mayo", in memory of a victory said to have been won over the Moors in the 8th century by Count Aznar aided by the women of Jaca.
There are many hermitages around Jaca, but none more interesting than that of San Juan de la Peña, ensconced within a cave in the Pyrenees.
At the same time Sancho was appointed Bishop of Huesca (1058–1075) and hastened to request the Pope Alexander II to confirm the decisions of the council.
In the same year of 1063, however, King Sancho Ramirez of Aragon (1063–1094) had won back from the Moors the city of Barbastro, and had granted it to the Bishop of Roda.
In November 1096, King Pedro I of Aragon conquered Huesca from the taifa of Zaragoza and restored the original see.
Pope Urban II decreed (May 11, 1098) that, instead of Jaca, Huesca should again be the seat of the bishop, as it had been until the year 713 (cf.
Jaca was again erected into a separate diocese and was made suffragan to the Metropolitan See of Zaragoza by a Bull of Pope Pius V (July 18, 1571), which decision was carried into effect on February 26, 1572.