At the end of the Ming Dynasty, Li Zicheng, a traitor to Li Ni, led his army to capture the city of Beijing. Wu Sangui, the commander-in-chief of Shanhaiguan Pass, led the Qing troops into the pass. Emperor Cou Zhen, surrounded by enemies, led his eunuch Wang Chengen to hang himself in an old locust tree on Meishan Mountain. In fact, it was Emperor Cou Zhen and Wang Chengen's double who died. The real Emperor Cou Zhen and Wang Chengen have traveled to a city in western China in 2000, using the pseudonym Li Xu. Bringing back Wang Chengen, whose pseudonym is Zhang Shoucheng, he traveled back with him. Li Xu got acquainted with a local girl named Tang Yan, and has been looking for a way to travel back to the late Ming Dynasty, trying to change the ending of that time by deposing Wu Sangui, killing Li Zicheng, and sending troops to wipe out Hou Jin.