The Daxing Dynasty valued culture over military affairs, and party strife in the court was fierce. In order to find out the truth about her father's corruption case, Shen Weilan, the daughter of the guilty minister, took advantage of the court's recruitment of historian talents. She disguised herself as a man (later resumed her disguise as a woman) to obtain the position of female historian, and was assigned to the master's room of Dali Temple to compile files. Relying on her photographic memory and rigorous logical thinking, she discovered clues from old cases. Not only did she repeatedly solve strange cases, she also attracted the attention of Pei Jinghong, the emperor's counselor who suffered from leg disease and was hiding behind the scenes.
The two went from testing and exploiting each other to joining forces to fight against the traitors in the DPRK. Shen Weilan progressed step by step in the workplace, from a small recording officer to the young minister of Dali Temple in charge of prisons, and then to the female imperial official. She has experienced rejection by colleagues, pressure from powerful people, and life and death assassinations, and has always adhered to the belief that "historical writing is as iron as iron, and no false words are written." In the end, she uncovered a shocking conspiracy involving the change of imperial power, rehabilitated her father, assisted Mingjun in rectifying the government, and became the first female prime minister in Daxing.