Modern young man Fang Zhengyi traveled through time and became the magistrate of Taoyuan County in the Dajing Dynasty. With modern governance thinking, he turned the poor county into a paradise of prosperity and peace. Emperor Jing Li Che, who paid a private visit incognito, unexpectedly discovered the miracle of this place. He was surprised and rewarded for this unruly and resourceful county magistrate. Fang Zhengyi cleverly sells tribute tea, cures floods, and subverts ancient knowledge with novelties such as toilets, toilet paper, and vernacular writing. While pretending to be a pig and eating a tiger, he is sitting in the county government office while fighting wits and courage with the emperor, the prince, and the powerful ministers. He doesn't love power and only loves stability, but he stirs up troubles in the court with his unique skills. He counterattacks from a grassroots county magistrate to an imperial master, starting a hilarious legend of governing the country that collides with ancient and modern times.