Leaving the medieval castle through the gate