Ji Changge, a modern social worker, died suddenly while working overtime. When he woke up, he found that he had traveled through time and became an ancient good-for-nothing prince. The original owner was whipped into coma in public for teasing the prime minister's daughter. Dequan, the eunuch in charge of the East Palace, informed him that he was in danger, and that the second prince and his party were taking the opportunity to launch an attack. Ji Changge tried to use modern knowledge to make a simple water purification device to solve the water pollution problem in the palace, but unexpectedly attracted the attention of Lin Wanwan, the daughter of Imperial Physician Lin who came to investigate. Lin Wanwan appeared to be here for a follow-up consultation with the prince, but in fact, she was secretly investigating whether the prince really had bad conduct.