Lin Yan, a top student in the modern 985 history department, accidentally traveled to the fictional Dajing Dynasty while searching for information in the library, and became Lin Jiaming, a scholar from a poor family. The original subject was weak and sick, failed in many tests, and was on the verge of dropping out of school because he offended the squire. Relying on modern historical knowledge reserves and efficient learning methods, Lin Yan passed all the tests, from the county examination, the government examination to the palace examination, and finally defeated the children of the aristocratic family and won the first place in the high school. After joining the job, he solved the financial crisis with forward-looking vision and proposed new policies to benefit the people. He worked step by step in the power whirlpool between the harem and the court. In the end, he counterattacked from a poor family to become a powerful minister who stabilized the country and stabilized the country. He also gained sincere emotions that transcended identities.