The Gate of China was built in the Ming Dynasty. It was part of the Nanjing City Wall. There's also a barbican in the Big Gate of China. When the barbican door and city gate were both closed, attackers would be blocked between them and the defenders which had already hidden in secret rooms in and on the barbican could shoot them easily.