What happened when the dead did not fully leave the world of the living?
Death in Swedish folklore was surrounded by both Christian belief and older popular traditions. The dead were buried according to Christian practice, but stories also warned that some people might return. Older Swedish folklore speaks of gengångare, people who came back from the dead, and of gastar, frightening death-beings that could haunt or attack the living.
The reasons for returning were not always the same. A violent death, an improper burial, wrongdoing or a strong connection to a place could all appear in stories about the restless dead. Some revenants still resembled the person they had been, while other death-beings were described as something more dangerous and less human. A gast, for example, could be associated with someone who had died violently and had not been buried in consecrated ground.
Places connected with death could also become dangerous in stories: churchyards, execution sites, battlefields, lonely roads and old houses. Such places created a physical boundary between memory and fear. A strange sound, light or figure could be interpreted through stories already known in the community.

Analysis
There was no single Swedish folk doctrine of the afterlife. Christian teaching provided ideas about the soul, heaven, hell and resurrection, while folklore concentrated more often on what could happen near the boundary between the living and the dead. The important question in many legends was not where all dead people went, but why a particular dead person had returned.
These stories also gave moral meaning to death. A person who had been wronged, murdered, badly buried or unable to leave something behind could remain part of the human landscape. In that sense, ghost stories preserved memory as much as fear.