Ghost stories can be a mirror of societal fears. In many cultures, there are ghost stories related to the fear of losing one's home or property. This could be seen in tales where a ghost haunts a place because it was wronged in some way related to its former dwelling. Another aspect is the fear of moral decay. Some ghost stories might feature a malevolent spirit as a punishment for immoral behavior in society, warning people to abide by the moral code. Overall, ghost stories use the supernatural to explore and give form to the fears that exist within society.
Societal fears are often directly reflected in ghost stories. For example, the fear of the unknown in the dark ages led to many ghost stories about mysterious entities lurking in the shadows. These stories were a way for people to cope with their fear of the unseen and the unpredictable.