Huesca, Jaca, and Barbastro, as well as a part of the Diocese of Lérida. Jaca was then made the permanent seat of the diocese. At the same time Sancho II was appointed Bishop of Huesca, 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. García Ramírez, the new Bishop of Huesca (1076–1086) and the king's brother, regarded this as an infringement of the rights of jurisdiction granted the Bishop of Jaca by the council of Jaca. He therefore renewed his petition to the new pope (Gregory VII) to have the decisions of the council confirmed, which request the pope granted . As, however, Bishop Raimundo of Roda also obtained the confirmation of all his privileges from Gregory, a violent dispute arose between the Bishops of Huesca and Roda as to jurisdiction over the churches of Barbastro, Bielsa, Gistao, and Alquezar, which in 1080 was decided by the king in favour of the Bishop of Roda. Bishops' seat returns to Huesca (1096–present) In November 1096, King Pedro I of Aragon took back Huesca from the Moors 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 . But Jaca itself had a separate existence under a vicar-general, independent of the Bishop of Huesca. It also retained its own cathedral chapter, which originally followed the Rule of St. Augustine, but in 1270 both this chapter and that of Huesca were secularized. The history of the Diocese of Huesca is from this time on closely associated with that of the present Diocese of Barbastro. The episcopal city of Huesca was long a centre for education and art. Ancient Osca was the seat of the famous school of Sertorius. After the failure of his plans at Perpignan, king Pedro IV of Aragon in 1354 established a university at Huesca, which was maintained by a tax laid on the city's food, and which pursued a steady if not a brilliant existence until it was eclipsed by the great college at Saragossa. In 1571, the Diocese of Barbastro was erected out of part of Huesca.