Puranas reference : Once Indra, the King of heaven was sitting with His wife Sachidevi and was being praised by the other demigods. At that moment, his spiritual master Brihaspati arrived. Being too engrossed in the material opulence, Indra did not notice the presence of his spiritual master and forgot to offer him respects. This offended Brihaspati who decided to teach Indra a lesson and immediately vanished from the assembly. Indra started to repent his behavior and immediately left to search Brihaspati for begging forgiveness and could not find him anywhere. Because of offending his spiritual master, Indra was defeated by the demons in a great war and lost all his opulence. Thus Indra and the other demigods approached Lord Brahma for shelter. Lord Brahma understood the entire situation and chastised the demigods for offending their spiritual master. Brahma then ordered demigods to accept Vishwarupa, the son of Twashta as their priest. They then performed a fire sacrifice under the priesthood of Vishwarupa. Vishwarupa then taught Indra, the Narayana-kavacha mantra by which Indra won over the demons and started enjoying the opulence of the three worlds.
Vishwarupa was affectionate towards the demons, so He would supply them the remnants of yajna (prasadam). When Indra learnt about this, he immediately beheaded Vishwarupa. Vishwarupa was a brahmana and thus Indra acquired the sin of killing a brahmana. Although he was competent enough to nullify this sinful reaction, he did not do so but distributed it amongst the land, trees, water and women. The land accepted one-fourth of Indra’s sin, thus a portion of land got converted into a desert. After Vishwarupa was killed, his father performed a yajna to kill Indra. While performing the sacrifice, Twashta chanted a mantra to increase Indra’s enemies. However he chanted the mantra wrong which meant demon whose enemy is Indra. Immediately from the yajna-kunda a fierce demon arose. Demigods were powerless in front of this demon. Seeing no other way, they worshiped Lord Vishnu to help. Being pleased by the demigods, the Lord advised them to approach Dadhichi Muni to beg the bones of his body. With the help of these bones, Vishwakarma made a thunderbolt which was invested by the power of the Supreme Lord. With this thunderbolt Vritrasura could be killed.
At the end of Satya-yuga and the beginning of Treta-yuga, a great war took place between the demigods and the demons. Unable to tolerate the power of demigods, all the demons fled away from the battle, leaving their commander-in-chief Vritrasura to fight alone. Seeing the demons flee, Vritrasura advised them the importance of fighting and dying on a battlefield. His advice did not stop them and fight. And he stood alone in front of the demigods. Soon Vritrasura began trampling them down. Unable to withstand it, Indra threw his club at Vritrasura. Vristrasura was such a hero, that he caught the club with his left hand and used it to beat Airavata, Indra’s elephant. Struck by the blow of Vritrasura, Airavata fell with Indra on his back.
Pandavas killed Bakasura in Dwapara-yuga : In Dwapara-yuga, Kaiwara was known as Ekachakrapura and was dwelling of Pandavas during their exile. Pandavas lived here as poor brahmanas in incognito. Kaiwara’s citizens were being constantly harassed and harmed by a demon named Bakasura. Kunti Devi requested Bhima to put an end to this menace. Bhima fought and slew Bakasura. Bakasura was a devotee of Lord Shiva. In order to counteract the sinful reaction of killing Bakasura, Bhima was advised to install a shiva-linga and worship. The shiva-linga which was installed by Bhima is famous as Sri Bhima Lingeshwara. Surrounding the Bhima Lingeshwara, other four Pandavas also installed lingas and worshiped them. They are called as Dharmalingeshwara, Parthalingeswara, Nakuleshwara and Sahadevalingeshwara. A temple dedicated to Parvati, the consort of Lord Shiva is also nearby. Hence Kaiwara became famous as Pancha-linga Kshetra.
According to the local legends, Lord Ramachandra visited Kaiwara twice. Once with Vishwamitra when He was on a mission to protect the yajnas being performed by the rishis and the second time with Mother Sita and Lakshmana during their exile. There is a cave known as Ramara Guhe in the temple of Amara Narayana. It is believed that Lord Rama stayed in this cave. There is a temple of Veeranjaneya on the outskirts of Kaiwara. On a nearby hill, Lakshmana shot an arrow in order to get water to quench the thirst of Mother Sita. A small lake is formed at this place which is known as Lakshmana Tirtha. Next to Lakshmana Tirtha is the temple of Goddess Chamundeshwari. After killing the demon Mahishasura, mother Chamundeshwari visited this tirtha, took bath in its holy waters and assumed a peaceful form. It is also believed that other forms of Durga Devi known as Grama Devis, visited this place and took a holy dip in this tirtha.
Kaiwara Thataiyya : In the current days, Kaiwara is famous for Sri Yogi Naraeyana Yathindra popularly known as Kaiwara Thataiyya. Thataiyya lived between 1726 and 1836 and was a bilingual devotee poet of Lord Amara Narayana. He wrote in Telugu and Kannada languages. His most popular literary contribution is Kalajnana, a prophetic text. His other works include Tattva Kirtanas, Sri Krishna Charitha Tattvamitra Yogasara and a half dozen shataka verses. He has also composed eighteen kirtanas in kannada language and are considered on par with the kirtanas of Purandaradasa and Kanakadasa. The Yogi Naraeyana Ashrama at Kaiwara is now carrying forward the legacy of Kaiwara Thataiyya by promoting the kirtanas and performing various social activities.
This temple was built in 11th - 12th centuries by Hosala Kings. The idol was installed here by the king Vishnuvardhan who belonged to the Hoysala dynasty.