Li Ke, a graduate student in the history department at Capital Normal University, touches a bronze compass in a museum and transmigrates into Li Ke, a disgraced prince being led to the execution ground during the Zhenguan era. The son of a former Sui princess, his father Li Jing was killed in battle, his cultivation has been destroyed, and Changsun Wuji has framed him for colluding with the enemy and betraying the country. He will be executed at noon!
At this critical moment, words suddenly appear on the compass he carries: “The ink on the secret letter is pine soot ink from the Western Market. The seal is forged. A member of Changsun's staff entered the Court of Judicial Review at night!”
With the compass as irrefutable evidence, Li Ke turns the tables in his desperate situation, humiliating Changsun Wuji in front of everyone and leaving Li Shimin, who has come in disguise, utterly stunned. Li Ke only wants to keep his head down and stay alive, but then the compass reveals another secret: “A former Sui treasure lies hidden in the Wei River. The Turks are making a move because they seek the treasure!”
From then on, the disgraced prince becomes Zhenguan's most unruly son. His war-game simulations predict the battle for Liaodong, leaving Wei Zheng speechless. He improves canal transport and invents movable-type printing, prompting Li Shimin to exclaim, “Heaven has blessed me with this son!” He outplays Crown Prince Li Chengqian on the polo field, winning over veteran generals like Cheng Yaojin. He ventures into the secret passages beneath the Wei River, cracks the mechanisms left by the former Sui dynasty, and faces down the Turkish cavalry to seize the key to the hidden treasury...
At court, he uses modern knowledge and clues from the compass to purge Changsun Wuji's allies one by one. At the border, his improved weapons force the Turkish khagan to kneel and beg for peace. In the secret realm, he uncovers the compass's connection to the former Sui dynasty, only to discover that his transmigration was no accident, and that even Li Shimin is hiding a secret about the compass!
As the struggle over the succession reaches its peak and a Turkish sacred relic triggers a disturbance in the flow of time, Li Ke stands at the center of the storm, compass in hand. “I will protect this golden age of Zhenguan, and I will set the order of time and space!”