It started to be used in the 12th century. The royal gate was built in the 13th century. The remaining structures were completed in the 14th and 15th centuries. It was built in the Gothic style as a Roman Catholic church. It is on the UNESCO world heritage list.