During the Yuanqi period of the Jokhang Dynasty, Song Yan, a wealthy official from a humble family, unexpectedly awakened to the "Dingjing Division Case Judgment System" while reviewing an old case. With the help of the "autopsy", "psychological profiling", "logical deduction" and other skills unlocked by the system, he gradually uncovered the collusion behind the corruption of officials from unsolved cases in the countryside to the mystery of the capital. He not only has to protect himself in the turbulent officialdom, but also protects his fateful bond with Su Ruoheng, the scribe of Dali Temple. When investigating his father's unjust case, he is involved in a shocking conspiracy to overthrow the dynasty. When the system prompts that "the ultimate truth requires solving hundreds of cases," Song Yan only knows that the gavel in his hand has already become a lever to leverage the fate of the entire dynasty.