According to Hindu mythology, Varanasi was founded by Lord Shiva one of three principal deities along with Lord Brahma and Lord Vishnu. During a fight between Brahma and Shiva, one of Brahma’s five heads was torn off by Shiva. As was the custom, the victor carried the slain adversary’s head in his hand and let it hang down from his hand as an act of ignominy, and a sign of his own bravery. A bridle was also put into the mouth. Shiva thus dishonored Brahma’s head, and kept it with him at all times. When he came to the city of Varanasi in this state, the hanging head of Brahma dropped from Shiva’s hand and disappeared in the ground. Varanasi is therefore considered an extremely holy site.
The Pandavas, the protagonists of the Hindu epic Mahabharata, are said to have visited the city in search of Shiva to atone for their sin of fratricide and Brāhmanahatya that they had committed during the climactic Kurukshetra War. It is regarded as one of seven holy cities (Sapta Puri) which can provide Moksha ( Salvation ).