This thing being firmly and securely locked allows the defenders of the fortress to shoot the invaders which had broken through the first gate with crossbows and arquebuses.