Zheng Yu, a 21st-century overworked office drone, dies suddenly after yet another late night at work. Through an unlikely twist of fate, he arrives in ancient times and is reborn in the body of a low-ranking legal clerk who shares his name. In the small kingdom of Daqi, he earns a place in officialdom by solving cases and punishing the wicked, eventually rising to the highest ranks. But the emperor grows suspicious of his power and fears he has become too influential, while the court is rife with open and covert attacks. After resigning, Zheng Yu builds an armed force to protect himself, growing from weak to strong until he rules over his own domain.