The castle served as a fortification for the Romans, Visigoths and the Moors, who turned it into a royal palace before it was eventually taken by Portugal's first king, Afonso Henriques.
The castle, which formerly belonged to the Kingdom of Burgundy, passed through the hands of various aristocratic families and even the Prussians before coming into the possession of the Canton of ...