Di Huaiyan, a scholar of history, transmigrates to the Zhenguan era of the Tang Dynasty and becomes a penniless scholar living in a ruined temple. Framed by others, he is charged with writing defamatory poetry and thrown into the condemned cell of the Jingzhao Prefecture prison. Shackled and surrounded by danger, with the Lu family closing in and numerous factions stirring beneath the surface, he relies on his knowledge and ingenuity to survive. Searching for evidence behind bars and caught in Chang'an's political maelstrom, he wields his pen like a blade, fighting desperately for a chance to live.