Zhong Kui is a figure of Chinese mythology. Traditionally regarded as a vanquisher of ghosts and evil beings, and reputedly able to command 80,000 demons, his image is often painted on household gates as a guardian spirit, as well as in places of business where high-value are involved.
According to folklore, Zhong Kui travelled with Du Ping , a friend from his hometown, to take part in the imperial examinations at the capital. Though Zhong achieved top honours in the exams, his title of "zhuangyuan" was stripped by the emperor because of his disfigured appearance. In anger, Zhong Kui committed suicide upon the palace steps by hurling himself against the palace gate until his head was broken. Du Ping buried him. After Zhong became king of ghosts in Hell, he returned to his hometown on the Chinese New Year's Eve. To repay Du Ping's kindness, Zhong Kui gave his younger sister in marriage to Du.
Zhong Kui's popularity in folklore can be traced to the reign of Emperor Xuanzong of Tang China . According to Song Dynasty sources, once the Emperor Xuanzong was gravely ill. He had a dream in which he saw two ghosts. The smaller of the ghosts stole a purse from imperial consort Yang Guifei and a flute belonging to the emperor. The bigger ghost, wearing the hat of an official, captured the smaller ghost, tore out his eye and ate it. The bigger ghost then introduced himself as Zhong Kui. He said that he had sworn to rid the empire of evil. When the emperor awoke, he had recovered from his illness. So he commissioned the court painter Wu Daozi to produce an image of Zhong Kui to show to the officials. This was highly influential to later representations of Zhong.