Li Shimin, Emperor Taizong of the Tang dynasty, regarded as one of the greatest rulers of one of China’s greatest dynasties, was a man who had trouble sleeping. In popular folktales, he feared ghosts and ordered two of his generals to stand guard at his palace gates to ward off evil spirits. Later, to spare the generals the nightly duty, he had their portraits painted on wooden boards to be hung beside the grand doors in their place. As this practice spread, the two generals became the “door gods,” whose images are still pasted on gateways today. But Taizong’s door gods were guarding a darker mystery. The ghosts the great emperor feared may have been those of his own brothers, who he had deposed in a devious coup at those very same palace gates 1,400 years ago this month.