Sources The earliest extant reference to Zhong Kui appears in the
Supplementary Notes to Dream Pool Essays by the Northern Song scholar
Shen Kuo, which mentions a Zhong Kui portrait then attributed to the Tang painter
Wu Daozi together with its inscription. By the Ming anthology
Tianzhongji (,
Records from Mount Tianzhong), quoting
Tang Yishi (), the story of Zhong Kui catching ghosts had taken on its standard form.
Tang dynasty customs attested in practice From the High Tang onward, it became customary for the emperor to bestow Zhong Kui portraits on ministers at year's end, and several sources record the practice: •
Zhang Yue's
Memorial of Thanks for the Bestowal of a Zhong Kui Portrait and Calendar (), describes how the imperial gift of a Zhong Kui painting and a new almanac was woven into New-Year celebrations during Emperor Xuanzong's reign. •
Liu Yuxi submitted two analogous memorials in Emperor Dezong's reign:
Memorial, on Behalf of Vice-Minister Li, Thanking for a Zhong Kui Portrait and New Calendar () and
Memorial, on Behalf of Chancellor Du, Thanking for a Zhong Kui Portrait and New Calendar (). Both record that the court distributed Zhong Kui paintings, so officials could ward off evil at year's end. • ''New-Year's Eve Invocation to Zhong Kui for Performing Nuo to Expel Evil'' () recorded in Dunhuang manuscript, shows Zhong Kui acting as the evil-repelling protagonist in New-Year Nuo rites. Taken together, these accounts indicate that by the time of Emperor Xuanzong, Zhong Kui's evil-quelling image was already widespread in both court ritual and popular custom.
Later reinforcement of Zhong Kui's image In literary works such as
Zhong Kui: The Complete Chronicles (),
The Tale of Quelling Ghosts () and
The Tale of Slaying Ghosts (), Zhong Kui is further portrayed as an incorruptible champion of justice who rids the world of evil on behalf of the people, and is held in deep popular esteem. In summary, Zhong Kui's true origin remains unresolved; his figure and worship are the cumulative result of folk practice, religious ritual, and literary-artistic creation across a long sweep of history.
Tales and cultural reference In the
Supplementary Notes to Dream Pool Essays, Shen Kuo records seeing a painting, then attributed to Wu Daozi (), the renowned Tang painter, together with an inscription recounting a dream of Emperor Xuanzong. According to the inscription, during the Kaiyuan reign, Emperor Xuanzong (, also known as Tang Minghuang) returned to the palace after supervising military exercises on Mount Li, fell ill, and remained unwell for more than a month. One night, he dreamed of two ghosts: a small red-trousered spirit—shod on one foot, the other shoe hanging at its belt, bamboo fan in hand—who snatched Consort Yang's (, Yang Guifei; Taoist name Taizhen) purple sachet and the emperor's jade flute and raced about the hall, and a larger, fearsome figure in a battered cap and blue robe, one sleeve stripped and both legs bound in hide, who seized the thief, gouged out its eyes and swallowed them. The emperor asked the larger ghost his name. He replied, "My humble name is Zhong Kui—once a failed candidate in the imperial military examination". Waking up, Xuanzong thereupon ordered the court painter Wu Daozi to depict the dream exactly as he had seen it. Wu completed the commission, and when the painting was presented, the emperor marvelled that the image corresponded to his vision in every detail. In the painting, ghost-servants hoist banners and parasols, sound horns and bear a bridal palanquin, lending a celebratory air to a subject otherwise devoted to evil-banishing. For this reason, the painting stands apart from sterner counterparts (such as
Driving Away Evil in Dragon Boat Festival (),
Zhongkui Catching Ghosts (), and
Shenshuand Yulü (). According to folklore, Zhong Kui travelled with Du Ping (), a friend from his hometown, to take part in the state-wide
imperial examinations held in the capital city
Chang'an. Though Zhong Kui attained great academic success through his achievement of top honors in the major exams, his rightful title of "
Zhuangyuan" (top-scorer) was stripped from him by the then
emperor because of his disfigured and ugly appearance. ==Popularization in later dynasties==