Gu Weng heard that Qiao Sheng met Liancheng through poetry gatherings and was angry, so he stopped their contact. Liancheng consequently fell ill from heartache, growing worse day by day. All physicians were at a loss. A Taoist said, "The illness is caused by a knot in the heart; it requires another person's heart flesh as a medicinal guide." Gu Weng was distressed.
When Qiao Sheng heard of this, he was deeply grieved. Qiao Sheng said, "Why should I begrudge the flesh of my own heart?" Thereupon he cut his own chest, blood flowing over his body, and cut out his heart flesh to give to her.
Liancheng took the medicine and her illness healed at once. Gu Weng, grateful for his kindness, intended to marry his daughter to him. Wang Sheng, jealous, bribed the jailer with a large sum of money and fabricated a crime against Qiao Sheng, so Qiao Sheng was imprisoned. When Liancheng heard this, she wept bitterly and said, "For my sake he has fallen into prison; what is the point of my living!"
Liancheng refused to eat and wept day and night. Gu Weng urged her, saying, "Life and death are fated; why must you be like this!" Liancheng said, "Qiao Sheng's affection for me is deep; I would rather die than betray him!" So she fasted for seven days and died.
In prison, when Qiao Sheng heard of Liancheng's death, overcome with grief and indignation, he too refused food and died a few days later.
Their souls entered the underworld and met in the dark realm, seeming as they were in life. When Qiao Sheng saw Liancheng, he was overjoyed, holding her hand and saying, "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 and said, "Your kindness is engraved on my bones and heart; I swear to follow you even in death!" The two then became married in the underworld.
The King of Hell, observing their situation, sighed at the truth of their feelings and judged that Liancheng should return to life. Qiao Sheng, unwilling to part, begged, saying, "My love with Liancheng is deep; I wish to follow her back to life and continue our former bond!" The King of Hell said, "Your lifespan is already exhausted; this request is hard to grant." Qiao Sheng begged again and again, weeping with tearful entreaties. The King of Hell, seeing the depth of his feeling, then permitted it. But Qiao Sheng's body had already decayed and could not be used again.