nie xiaoqian is introduced as a beautiful female ghost. she died at the age of 18 and was interred in an old temple in jinhua, zhejiang. nie is coerced to participate in ritual murders in the service of a demon. a pale-faced scholar, ning caichen, is going to beijing to take a civil service examination. though nie attempts to prey upon ning caichen, he resists her and takes her from her haunt. as ning's sickly wife slowly dies, nie fulfills expectations of filial piety as she takes upon the household chores. once ning's wife dies, he is free to pursue nie. nie's good works earn her humanity back. she and ning marry and conceive a child, representative of nie's restoration.