A criminal police officer transmigrates to the early years of Emperor Taizong's reign in the Song Dynasty, where he happens upon a dejected county magistrate about to hang himself. After realizing that he looks just like the magistrate, he impersonates him and vows to take good care of his family.
But he soon discovers that he has been assigned to a remote place of exile, far from civilization. Awaiting him are not only the startled, suspicious gaze of the magistrate's wife, who shares his bed, but also a baffling mountain of debt, a succession of bizarre and baffling murder mysteries, and even bigger mysteries lurking behind them. Worst of all, waves of mysterious assassins keep coming after him!
With a sharp mind, meticulous deductions, and quick reflexes, he survives one danger after another, unravels each mystery, and gradually makes a fortune and rises through the ranks.