 The traditional narrative tells that Gun built the inner wall to defend the prince and the outer wall to settle the people.An alternative narrative attributes the first city wall to the Yellow Emperor.A number of neolithic walls surrounding substantial settlements have been excavated in recent years.