"Viy" (Russian: Вий) is a horror novella by the Russian writer Nikolai Gogol, first published in the first volume of his collection of tales entitled Mirgorod (1835). The title is also the name of the demonic entity central to the plot.
Every summer, there is usually a large procession of all the students moving around the area as they travel home, However, the group is reduced to three students, the theologian Khaliava, the philosopher Khoma Brut, and the rhetorician Tibery Gorobets.
As the night draws in, the students hope to find a village near the main road where they can find some rest and food. However, they become lost in the wilderness, eventually coming upon two small houses and a farm. An old woman there tells them she has a little room and cannot accommodate any more travelers, but she eventually agrees to let them stay.
At night, the old woman comes to Khoma. At first, he thinks she is trying to seduce him, but then she draws closer and he sees that her eyes are glowing strangely. She leaps on his back, and he reluctantly finds himself galloping with her all over the countryside with a strength he previously never knew. He eventually slows the witch by chanting exorcisms out loud, and then rides on her back and later picks up a piece of wood and beats her as punishment. The old woman later collapses, and he discovers she has turned into a beautiful girl.
Khoma runs away to Kiev and resumes his easy life, when a rumor reaches his dean that a rich cossack’s daughter was found crawling home near death, her last wish being for Khoma the philosopher to come and read psalms over her corpse for three nights after her death.
Although Khoma is uncertain why the girl requested him specifically, the bribed dean orders him to go to the cossack’s house and comply with her last wish. Several Cossacks bring him by force to the village where the girl lived. When he is shown the corpse, however, he finds it is the witch he overcame earlier in the story. Rumors among the Cossacks are that the daughter was in league with the Devil, and they tell horror stories about her evil ways, such as previously riding on another person, drinking blood, and cutting off the braids of village girls and Khoma is reluctant to say prayers over her body at night.
On the first night, when the cossacks take her body to a ruined church, he is somewhat frightened but calms himself when he lights more candles in the church to eliminate most of the darkness. As he begins to say prayers, he imagines to himself that the corpse is getting up, but it never does. Suddenly, however, he looks up and finds that the witch is sitting up in her coffin. She begins to walk around, reaching out for someone, and begins to approach Khoma, but he draws a circle of protection around himself that she cannot cross.