Seeking refuge from a war, Jiang Shilong comes to a post house with Lian and her brother. Also lodging there is the Minister of War, Wang Zhen, and his family. Lian was engaged to Xingfu, son of Assistant Minister Qin, but the Qins have been framed by a wicked minister, leaving the matter unresolved. Before he leaves for the barracks, the war minister tells his daughter Ruilan to stay chaste for the reputation of the family. When rebels advance upon the post house, people there flee in panic, going in all directions.
Meeting by chance, Ruilan and Shilong decide to travel together and soon they fall in love. The travelers are joined by Wang’s wife, who adopts the girl along the journey. Shilong and Ruilan come across a deserted castle where Xingfu is taking refuge. With Xingfu offering to be the witness for their wedding, they perform the ritual at once and begin to stay in the west tower for the time being. Wang Zhen happens to be staying in the east tower at the time. Thinking that his daughter has married hastily without a witness, he is so angry that he orders her to go home. Grieved, Shilong tries to drown himself in the river, but he is saved byBian, sister of Wang’s wife. After that he renames himself Bian Shuangqing.
Having been promoted to prime minister, Wang decides to choose a husband for her foster child among the scholars who have just won the highest honors in the imperial exam. The girl asks permission to offer sacrifices to her first-wed in Xuanmiao Temple before her wedding. It happens that Shilong has also come to the temple to pray for the soul of Ruilan, who he believes to be dead. In fact, both have decided to kill themselves for love. They meet again at the Moon Pavilion. Others arrive and testify that Shilong is indeed an exemplary scholar. Wang finally agrees with their marriage, and Lian is reunited with Xingfu.