Modern forensic investigator Lin Feng unexpectedly transmigrates to the reign of Emperor Gaozong of Tang, during the Xianqing era. Forced to take the place of Lin Mu, a condemned prisoner about to be executed, he becomes a lowly convict laborer in Chang'an County. Using forensic techniques, logical thinking, and scientific knowledge far ahead of his time, he struggles to survive and solves one bizarre case after another. But he gradually discovers that behind these cases lies a vast and mysterious organization, the Court of Heavenly Secrets, plotting to overthrow the Tang dynasty. To protect himself, and even more to safeguard the civilization and warmth of this era, Lin Feng has no choice but to navigate both the imperial court and the martial world as a convict laborer, unraveling a world-shaking conspiracy amid the mists surrounding 108 mysterious cases.