When Old Man Gu heard that Qiao Sheng was exchanging poems with Liancheng, he was furious and forbade them from seeing each other. Because of this, Liancheng fell ill from heartache, and her condition grew worse day by day. All the doctors were at a loss. A Taoist priest said: "The illness is caused by a knot in the heart; one must use the flesh from another person's heart as a medicinal guide." Old Man Gu was deeply distressed.
When Qiao Sheng heard this, he was greatly grieved. Qiao Sheng said: "Why should I begrudge the flesh of my own heart?" He then cut open his own chest, blood streaming over his body, and cut out the flesh of his heart to give to her.
After taking the medicine, Liancheng's illness was immediately cured. Old Man Gu, grateful for his kindness, intended to marry his daughter to him. Wang Sheng, out of jealousy, bribed the jailer heavily, fabricated a crime against Qiao Sheng, and so Qiao Sheng was imprisoned. When Liancheng heard this, she wept bitterly and said: "For my sake he has fallen into prison; why should I go on living!"
Liancheng refused to eat, weeping day and night. Old Man Gu urged her, saying: "Life and death are fated; why must you be like this!" Liancheng said: "Qiao Sheng's love for me is deep; I would rather die than betray him!" She then fasted for seven days and died.
In prison, when Qiao Sheng heard of Liancheng's death, overcome with grief and indignation, he also refused food and died after a few days.
Their souls entered the underworld and met in the dark realm, as if they were still alive. When Qiao Sheng saw Liancheng, overjoyed, he took her hand and said: "I saved you with the flesh of my heart, and you died for my sake; this love and loyalty shall not change in life or death!" Liancheng also wept and said: "Your kindness is engraved on my bones and heart; I swear to follow you even in death!" The two were then married as ghosts.
The King of Hell, seeing their devotion, sighed at the truth of their love and decreed that Liancheng should return to life. Qiao Sheng, unable to part with her, pleaded: "My love for Liancheng is deep; I wish to return to life with her and continue our former bond!" The King of Hell said: "Your allotted lifespan is already exhausted; this request cannot be granted." Qiao Sheng begged again and again, weeping copiously. Seeing his heartfelt earnestness, the King of Hell granted his wish. But Qiao Sheng's body had already decayed and could no longer be used.