According to local beliefs, ghosts without a permanent resting place (as in a grave) wandering in the human realm and may cause trouble for the living.
[2][3][4] Temples dedicated to deities associated with afterlife, like Cheng Huang Ye or Di Zang Wang, are not considered yin miao.
[6] Shezi Island in Taipei's Shilin District has a high concentration of yin miao for the corpses that float down the Tamsui River and get lodged there.
[11] The origins of these shrines can be traced back to the custom of ghost marriage, where the spirits of unmarried women are paired with a deceased man in order to have offspring and become ancestors.
[11] The patriarchal social concept of the Han people in the early days of Taiwan believed that girls who died before marriage would not be able to enjoy incense and become lonely ghosts.