Yilan's has many folk religious traditions, inherited partially from social customs in China's Fujian and Guangdong provinces. One of which is the worship of wandering ghosts, which has a long history. Wandering ghost worship is considered as a system of Yin temples in folklore, Yin temples are numerous and widely distributed. The present study uses reference analysis of field investigation, observation, interviews, and inductive analysis of research materials to try to understand the type and development of wandering ghost worship in Yilan's Xi'nan area. Of particular interest is the importance of the promotion of the spiritual hierarchy of the ghost temples in this region. The study materials are used to analyze the characteristics of temples in terms of geographic spatial distribution, architectural space, and worship space to comprehend the relationships between temples and their surroundings, communities, and geographic space. The following are the conclusions formulated in this study. Firstly, there is a wide variety of wandering ghost temples in the Xi'nan area. By means of repeated renovation, some of the temples have upgraded their status as well as the spirits worshipped in them. The twelve Cheng-huang (City God) temples in the Su'ao area are excellent examples of this phenomenon. Secondly, with respect to these temples' geographic spatial distribution, the bones worshipped at temples located near bodies of water primarily came from victims of flooding or the fury of the sea. The bones worshipped at temples located near burial sites were likely to have come from the areas. Furthermore, the large numbers of temples situated at the edges of settlements or in remote locations show that ghost temples are shunned by the local people. Thirdly, the analysis of the architectural space of the temples shows those temples dedicated to spirits or deities with higher statuses tend to be larger and more intricate. The most common placement of temples are facing south and east. This is related to the surrounding geographic characteristics, the distribution of settlements, the location of burial sites and so on. Lastly, Ghost Festival rituals at City God temples are conducted and arranged with consideration for the relationships between man and man, man and ghost, and humans and the land.