The Gate of the Seven Floors is located on the southern flank of the walls that enclose and protect the Alhambra. It was built with the present configuration around the mid XIV century, during the period of Yusuf I, substituting a smaller one. It’s the closest one to the Medina and according to the chronicles it had a rather ceremonial character, there were military parades and tournaments carried out outside the gate. The gate goes from being a mere defensive bastion to became more of an emblem of political prestige. Among other characteristics it presents a zig-zaging disposition which protects it, since the enemy was obliged to turn a number of times before entering the citadel.
Source: Patronato de la Alhambra