Lin Yuan, a graduate student in the Department of History, accidentally came into contact with ancient books and traveled to the Daqian Dynasty. As a penniless man, he relied on modern knowledge to stand out in the imperial examinations. However, he was involved in a power struggle between the prime minister and the Taiwei, and was falsely accused of cheating in the imperial examinations. Fortunately, with the help of an old man he met in prison, the truth was revealed and he was recognized by the emperor and became an official in the court.
Afterwards, facing the internal and external troubles of the Daqian Dynasty, Lin Yuan and the heroine Su Yao shared the same goals, but they were framed and imprisoned by powerful officials. At the critical moment, the eldest princess Libao and Su Yao's father launched an army. The truth emerged and the powerful officials fell. Lin Yuan was appointed prime minister to implement reforms, and Su Yao was appointed as general to protect the border, and together they made the dynasty prosperous. The secret of time travel has not yet been solved. When Lin Yuan discovers a formation that is suspected to be able to open the door to time and space, what choice will he make between modernity and ancient times?