Du Liniang has a dream in which she meets a young scholar and promises to marry him. When she wakes up, she yearns for her lover and falls ill; after a while she dies of lovesickness. the young scholar in her dream, Liu Mengmei, later made his way to the capital to take the imperial examination. There, he meets Du Liniang's soul at Plum Blossom Nunnery and agrees to help her return to life by reuniting her soul with her body. They are successful and live happily ever after.