This is an old Gothic building which dates back to the 13th and 14th century. Its altarpiece is a superb example of Spanish Renaissance sculpture carved in alabaster by Damián Forment between 1520 and 1533, representing the Passion of Christ.
http://www.huescaturismo.com/en/monumental-detalle/7/the-diocesan-cathedral-museum/