Li Mingyuan, a graduate student in the Department of History, is deeply familiar with the history of the Jiajing Dynasty, although he is trapped in modern livelihood. A fire in an ancient book caused him to travel to Dezhou Wei, Shandong Province in the 35th year of Jiajing and become a poor teacher. At that time, the Ming Dynasty was plagued by internal and external troubles, Emperor Jiajing was obsessed with Taoism, Yan Song was monopolizing power, Japanese pirates and Mongols were constantly harassing the army, the military households in the guardhouse were corrupted, and the soldiers were miserable.
Armed with modern knowledge and historical understanding, Li Mingyuan started by solving the problem of food and clothing. He used the distillation method to purify bad wine in exchange for money, used health and epidemic prevention knowledge to fight the plague, simplified arithmetic to teach military children to keep accounts, and used accurate historical predictions to help the guard station avoid Japanese pirate attacks. After that, he advanced step by step, from Mr. Wei Suo to a staff member of the Imperial Envoy, and became a close friend of Hai Rui for many years, and became a fellow Taoist with Zhang Juzheng. He cleverly avoided the whirlpool of Yan Song's downfall to accumulate prestige, urged the court to strengthen border defenses in response to the Gengxu Revolution, and proposed a gradual plan to promote a whip. In the end, he presented the manuscript of the vaccination method to help the northwest border defense win, making Emperor Jiajing, who was obsessed with cultivating immortals, realize that this young man could prolong the country far better than the Taoist priests.