Founded in the 9th C, the buildings enclosed in the castle walls include a palace, three churches and a monestary.