After Lin Wan, a doctor of modern history, suffered a heart attack, he traveled through time and became Shen Qingyi, the deposed queen of Xiao Jingyan, Emperor Xuan of the Great Zhou Dynasty. At that time, she was in the cold palace waiting to be given poisonous wine. Based on her historical knowledge, she revealed the secret of Emperor Xuan's childhood "wooden kite under the locust tree" and suspended the death penalty.
Emperor Xuan Xiao Jingyan was abducted as a child and had a cold and suspicious personality. Shocked by the details of Lin Wan's "snake-shaped human trafficker", he suspended his death sentence and secretly monitored him. Lin Wan found out that the original owner was framed by Concubine Chen (the daughter of the Taiwei), that the old case of the Shen family was related to the Taiwei, and that the abduction of Emperor Xuan involved the "Netherworld Pavilion" killer organization.
The two formed an alliance, and Lin Wan used the "God's Punishment to Attack the Ancestral Temple" to build momentum, find the key figure Wang Chengzong, and instigate the rebel eunuch to gain access to secret information channels to help Xiao Jingyan fight against the Taiwei and the Netherworld Pavilion. Later, it was discovered that Youming Pavilion was actually a remnant of the previous Great Xia Dynasty, and he wanted to use the "Dragon Overlay Formation" to flood the palace. Lin Wan also revealed the truth about time travel - he knew that Xiao Jingyan was buried in the flood.
In the end, the two set up a "prisoner sacrifice ceremony" to smash the conspiracy and eradicate the remaining evildoers. After the dust settled, Jamel Xiao and Lin Wan turned from allies into friends, subdued Jiangnan, and guarded thousands of miles of rivers and mountains together.