Khosrau I
The walls with thirty north-looking towers are believed to belong to the time of Kavadh's son, Khosrau I, who also directed the construction of Derbent's fortress.