In Shangyu County there was a magistrate by the name of Xing who had terrible marital problems. One day, while he and his wife were in the midst of a quarrel, Xing slapped her. In a fury, the wife hanged herself. Three days after her death she became a ghost and began haunting her old home.
Whenever Xing got into bed with his concubine, a chill wind blew up, rustling the bed curtains and sometimes even blowing out the candle. Xing was furious at this harassment, so he called in a Daoist monk to exorcise the ghost.
The monk performed the necessary rituals and once he had succeeded in capturing the ghost he sealed it in a chamber on the eastern side of the house.
Placing some magic charms as well as an official seal on the door, the Daoist assured Xing that the ghost would not escape. Indeed, Xing experienced no further trouble from his wife's ghost.
After a while, Xing was transferred to Qiantang County. His replacement at the Shangyu magistry was, naturally, unfamiliar with the previous occupants' problems, and he opened up the eastern chamber, unwittingly releasing the ghost. The newly freed ghost then possessed a young maid and the turmoil and chaos in the Shangyu magistry began all over again.
The new magistrate confronted the ghost directly, saying, "Your fight is with Mr. Xing and has nothing to do with my maid. Why do you want to harm her?"
"Actually, I don't want to harm her. I merely planned to use her body as a medium through which I could seek your help," the ghost replied.
The magistrate then asked how he could be of assistance.
"I want you to send me to Xing's new place at Qiantang," the ghost explained.