Chen Yan, a graduate student in the Department of History, traveled back in time to the seventh year of Xuanhe in the Northern Song Dynasty due to an archaeological collapse, and became A Yan, a refugee in Yanzhou. At that time, the Yellow River burst its banks and starved to death all over the land. He used modern knowledge to make water purification devices and taught the victims how to prevent epidemics. He defected to Heifeng Village with his "terraced water diversion map" and gained trust. However, during the government's siege, he was entrusted with leading more than a hundred villagers to move eastward to Qingzhou.
In Qingzhou, Chen Yan encountered a locust plague and grain merchants were hoarding, so he created the "method of digging trenches to exterminate locusts" to protect grain. He used the "salt well filtration technique" to join forces with the Salt Gang to help Su Lingwei, the daughter of the former censor, expose corruption. After overthrowing the magistrate, he counterattacked and became the general judge of Qingzhou. He introduced new policies to reform the tax system, promote agriculture and mulberry, and doubled the grain production, but it violated the interests of the nobles. He was besieged by the White Lotus Sect. Finally, he borrowed reinforcements from the old capital of the capital to quell the rebellion, and recruited 20,000 troops.
After the Jin Dynasty invaded the south and Emperor Xuanhe fled south, Chen Yan took "anti-jin" as the banner and brought improved gunpowder to join Yue Fei's old troops. After the great victory in Cangzhou, he was named the "anti-jin hero" and his power expanded to three states. He supported Zhao Heng as emperor to fight against Jiangnan, defeated the expeditionary army with water attacks, subdued Han Shizhong, and smashed the palace coup to control the court.
Later, Chen Yan personally conquered and restored the sixteen prefectures of Yanyun, which shocked the Jin and Mongolia. In the fourth year of Jianxing's reign, Zhao Heng took the Zen throne, Chen Yan ascended the throne and established the "Yao" dynasty, changing the Yuan Dynasty to Qiyuan Dynasty. He reopened the Silk Road, promoted movable type printing, established academies of sciences and schools, resolved crises such as chieftain rebellions, and finally created the "Qiyuan Reign" and became a legendary emperor who "started from a humble beginning and established the world."