The city walls of Pingyao were constructed in the 3rd year of the Hongwu Emperor (1370). The walls have six barbican gates.