Datong Prince's Palace, also known as the Residence of Prince Dai (Chinese: 代王府), is a former Ming Dynasty palace in Datong, China.
The palace was built in the 14th century for prince Zhu Gui, prince of Dai, the thirteenth son of Zhu Yuanzhang, the first emperor of the Ming Dynasty (1368 - 1644).
The palace was gutted during the social breakdown at the end of the Ming dynasty in 1644, when the peasant rebellion under Li Zicheng reached Datong.
It had multiple courtyards and at the center there was the Palace of Eternal Spring.
These types of walls were designed to protect palaces from evil spirits and negative energy.