Since almost a thousand years ago, the Castle of Montsonís stands out imposingly in the highest part of the town.