Kodama (木霊 or 木魂?) are spirits in Japanese folklore that inhabit trees, similar to the dryads of Greek mythology. The term is also used to denote a tree in which a kodama supposedly resides. The phenomenon known as yamabiko, when sounds make a delayed echoing effect in mountains and valleys, is sometimes attributed to this kind of spirit, and may also be referred to as "kodama".
These spirits are considered to nimbly bustle about mountains at will. A kodama's outer appearance is very much like an ordinary tree, but if one attempts to cut it down, one would become cursed etc., and it is thus considered to have some kind of mysterious supernatural power. The knowledge of those trees that have kodama living in them is passed down by the elderly of that area over successive generations and they are protected, and it is also said that trees that have a kodama living in them are of certain species. There is also a theory that when old trees are cut, blood could come forth from them.
Kodama is also seen as something that can be understood as mountain gods, and a tree god from the old Kojiki, Kukunochi no Kami, has been interpreted as a kodama, and in the Heian period dictionary, the Wamyō Ruijushō, there is a statement on tree gods under the Japanese name "Kodama" (古多万). In The Tale of Genji, there are statements such as "is it an oni, a god (kami), a fox (kitsune), or a tree spirit (kodama)" and "the oni of a kodama," and thus, it can be seen that kodama are seen to be close to yōkai. They are said to take on the appearance of atmospheric ghost lights, of beasts, and of humans, and there is also a story where a kodama who, in order to meet a human it fell in love with, took on the appearance of a human itself.
In Aogashima in the Izu Islands, shrines are created at the base of large sugi trees in the mountains and are worshipped to under the name "kidama-sama" and "kodama-sama," and thus the vestiges of belief in tree spirits can be seen. Also, in the village of Mitsune on Hachijō-jima, whenever a tree is cut, there was a tradition that one must offer a festival to the tree's spirit "kidama-sama."