During the Changqing period of Emperor Muzong of the Tang Dynasty, scholar Pei Hang failed in the imperial examination and traveled to Hubei. On the way, he met Cui Xiangguo's mother who was suffering from an emergency. Pei Hang used the secrets of traditional Chinese medicine passed down from his ancestors to save Cui's mother. Cui Xiangguo thanked him with 200,000 yuan, and Pei Hang hired a ship to transport it back to Chang'an. Because he fell in love with Mrs. Fan, who was on the same ship, he asked his maid to write poems to express his love, and also sent each other famous wines and fruits. Mrs. Fan asked Niu Yan to write a poem in return and left without saying goodbye. Pei Hang had no choice but to get ready and continue back to Chang'an. When I arrived at Lanqiao Station, I was thirsty and asked an old woman for a drink. The old woman asked her granddaughter to bring her water. He was surprised to hear that this woman had the same name as Yunying written in Mrs. Fan's poem. So he stayed here and took the opportunity to propose. The old woman claimed that she was ill and asked Pei Hang to get a jade pestle and mortar and pound the medicine for a hundred days before they could discuss the marriage. Pei Hang tried every possible means in the capital, spent two hundred coins to get a jade pestle and mortar, sent it to Lanqiao, and spent a hundred days pounding the medicine. The old woman took it and took Yunying back to the cave. Soon he took Pei Hang to the cave and paid a visit to all the gods and beauties. There is a fairy who claims to be Yunying's sister. Pei Hang took a look and found out that it was Mrs. Fan who was on the same boat in Ezhu. She had already attained Taoism and became an immortal and became the female official of the Jade Emperor. Pei Hang was even more surprised. After he married Yunying, he lived in Yufeng Cave and transcended the world to become an immortal. Later, turmoil broke out in the Tang Dynasty, and the people were in dire straits. With the help of his wife Yunying and Mrs. Fan, Pei Hang put down the turmoil in the Tang Dynasty, eradicated the traitors in the court, and enabled the people to live a stable and happy life. He was named a nine thousand year old virtuous king by the emperor. But Pei Hang was unwilling to accept the reward, so he and Yunying returned to Yufeng Cave to enjoy the life of gods.