Li Wei, a lover of modern society and history, woke up after being accidentally electrocuted and found that he had traveled to a "Dayin Dynasty" that did not exist in history, and became Li Wei, a poor scholar who was about to take the imperial examination. Living in a hierarchical ancient society, facing a poor family, an eyeing clan, and turbulent court battles, how should he survive by using knowledge that transcends the times and modern thinking? From county examinations, government examinations, hospital examinations to township examinations, joint examinations, and palace examinations, he has risen through the ranks with the help of his insight into the laws of history and a little help from "Wenzhao Gong". However, officialdom is not the end. Imperial power, party struggles, border troubles, people's livelihood... Every step is shocking. Will he follow the trend and become a powerful minister and a wealthy man, or will he stay true to his original intention and use what he has learned to try to leverage this ancient empire and truly make a living for the people? This is a collision between ancient wisdom and modern thinking, and the struggle and rise of a small figure in the torrent of history.