The castle moat between the 1st and 2nd courtyards began as part of the original Gothic fortification and served mainly a protective function. It protected the castle wall and the tower gate which enabled access to the 2nd castle courtyard.