The high walls surrounding the building symbolize Confucius 'profound knowledge and supreme virtues, which a scholar can only learn through long study.
夫子之牆數仞，不得其門而入，不見宗廟之美、百官之富，得其門者或寡矣。」萬仞宮牆，是表示孔子的學問道德高深而又豐富，想要得其真傳，絕無捷徑，唯有進黌門（古時學校）或泮宮（古代學宮名）修習禮儀，才能窺其堂奧。