Wei Heng, a scholar from a poor family, went to Beijing to take part in the Yong imperial examination. He was accidentally involved in a suspicion of fraud in the examination room, and was invited by Marquis Yongning, who was in charge of the Ministry of Justice, to investigate the case. From then on, he worked step by step, passing through the various levels of the imperial examination, while assisting the marquis to solve many old cases. He stuck to his heart in the maelstrom of the emperor and the aristocratic family, and finally became an official with his talents and case-solving abilities, blazing a path of advancement unique to ancient scholars.