Song Ming, a third-year history student, accidentally transmigrates while studying an ancient Song dynasty scroll and becomes Song Jiang, who has just killed Yan Poxi and is imprisoned in Yuncheng County. The damp cell reeks of mold and rust, while the bailiffs’ jeers remind him that he is trapped. In just two hours, he will be escorted to Jizhou to face trial. Familiar with the plot of Water Margin, Song Ming knows the tragic ending awaiting Song Jiang and his Liangshan brothers: they will be poisoned with wine and their band will fall apart. He refuses to repeat that fate. More than anything, he wants to use his knowledge of history to help the Liangshan brothers avoid the dead end of accepting amnesty and forge a different future.
To stay alive, Song Ming first plays meek before Bailiff Wang, mentioning Zhu Tong and Lei Heng under the pretext of entrusting someone to care for his elderly father, and quietly laying the groundwork for his escape. When Zhu Tong and Lei Heng arrive, Song Ming knows that his chance to change his fate has come. Can he draw on his intimate knowledge of their personalities and his ability to predict the future to persuade them to let him go? And how will this transmigration-fueled comeback, which begins in a prison cell, rewrite the course of Liangshan and the Song dynasties?