It was built by Wang Xi, a local chieftain, between 1440 and 1446 during Emperor Yingzong's reign (1427–64) in the Ming Dynasty (1368–1644).