Legend & Origin
The story of the door gods begins with an emperor who couldn't sleep.
Legend says Emperor Taizong of Tang, Li Shimin, after years of war and much killing, was haunted after taking the throne by nightly dreams of vengeful ghosts coming for his life. Terrified and sleepless, he let the affairs of state all but grind to a halt, and none of the imperial physicians' remedies worked.
The great generals Qin Shubao and Yuchi Gong volunteered. In full armor, one on the left and one on the right, they stood guard outside his bedchamber all night. Strangely enough, from that night on the ghosts dared not come near, and Taizong finally slept soundly.
But there was a problem: after many nights on guard, even men of iron couldn't keep it up. Unwilling to see his beloved generals wear themselves out, Taizong came up with a solution. He had the court painters make full-length portraits of the two in their imposing battle dress and pasted them on the doors of his bedchamber. The ghosts saw the portraits from afar and still dared not approach.
As word spread, ordinary people rushed to copy him, pasting portraits of the two generals on their own doors. And once pasted, they stayed for more than a thousand years, right down to today's Lunar New Year.
Earlier door gods appear in the Classic of Mountains and Seas as quoted in the Lunheng by Wang Chong of the Eastern Han: beneath a great peach tree on Mount Dushuo in the Eastern Sea, two gods, Shentu and Yulei, caught ghosts and fed them to tigers. But for sheer drama, the pair of real men replaced by their portraits, Qin and Yuchi, won people's hearts, and they became the most popular door gods in Taiwan.
