Old Man Gu heard that Qiao Sheng was meeting Liancheng through poetry, became angry, and forbade their contact. Liancheng fell ill from a broken heart because of this, and her condition grew worse day by day. All the doctors were helpless. A Taoist said, 'The illness comes from a knot in the heart; it must be treated with another person's heart flesh as a medicinal guide.' Old Man Gu was full of grief and worry.
When Qiao Sheng heard of it, he was deeply grieved. Qiao Sheng said, 'Why should I begrudge the flesh of my own heart?' So he cut open his own chest, blood streaming over his body, and carved out his heart flesh to give to her.
Liancheng took the medicine, and her illness was suddenly cured. Old Man Gu, grateful for his kindness, intended to marry his daughter to him. Wang Sheng, jealous, bribed the jailer heavily, fabricated a crime against Qiao Sheng, and Qiao Sheng was thrown into prison. When Liancheng heard of it, she wept loudly and said, 'For my sake he has fallen into prison; what reason have I to live!'
Liancheng refused to eat, weeping bitterly day and night. Old Man Gu urged her, saying, 'Life and death are determined by fate; why must you be like this!' Liancheng said, 'Qiao Sheng has treated me with deep affection; I would rather die than betray him!' So she fasted for seven days and died.
In prison, Qiao Sheng heard the news of Liancheng's death, and overcome with grief and anger, he too refused food and died after several days.
Their souls entered the underworld and met in the dark realm, as if they were alive. When Qiao Sheng saw Liancheng, he was overjoyed, and holding her hand said, 'I saved you with my heart flesh, and you died for me; this love and righteousness will not change in life or death!' Liancheng also wept, saying, 'Your kindness and virtue are engraved on my heart; I swear to follow you even in death!' So the two became a married couple in the underworld.
The King of Hell reviewed their situation, sighed at their true feelings, and decreed that Liancheng should return to life. Qiao Sheng, unwilling to part, begged, saying, 'Your subject and Liancheng share deep love; I wish to return to life with her and continue our former bond!' The King of Hell said, 'Your span of life is already exhausted; this proposal is hard to grant.' Qiao Sheng pleaded again and again, weeping profusely. The King of Hell, seeing his earnest affection, then agreed. But Qiao Sheng's body had already decayed and could not be used again.