According to a legend, Goddess Sati burnt herself alive in Yagna, which distressed Lord Shiva. He picked the corpse of Sati on her shoulder and started his Taandav dance. This horrified all deities in the heaven as this could lead to holocaust. This urged Lord Vishnu to unleash his Chakra that cut the Sati’s body into 51 pieces. Shri Naina Devi Temple is the place where eyes of Sati fell down.
Shri Naina Devi Temple is also known as Mahishapeeth because of defeat of demon Mahishasur by the Goddess. According to the legends, Mahishasur was a powerful demon who was blessed by the boon of immortality by Lord Brahma, but the condition was that he could be defeated only by an unmarried woman. Due to this boon, Mahishasur started spreading terror on Earth and Gods. To cope with the demon, all Gods combined their powers and created a Devi to defeat him. The Devi was gifted different types of weapons by all Gods. When Mahishasur got mesmerized by the immense beauty of Devi and proposed her to marry him. Devi told him that she will marry him if he would overpower her. During the battle, Devi defeated the demon and took out both his eyes. This urged Gods to happily applaud “Jai Naina” and hence the name.