Brahmā is the Hindu god of creation and one of the three primary gods of Hinduism, the other two being Viṣņu and Śiva. He created the Gods and demons - both these groups fight against each other. While the demons, called asuras use muscle power, the Gods called devas use the power of Veda, the sacred texts. Once, two demons, Madhu and Kaithaba tricked the gods to steal the Veda, chopped it to pieces and hid it in the bottom of the sea. Vishnu fought the demons, but could not defeat them. He prayed to Shiva and Parvathi and with the accomplishment, he was able to defeat the demons. He took the form of Matsya, a fish to search the Veda. The recovered Veda from the bottom of the sea was brought to the deity at this temple, who reunited and purified it. The wishing tree of gods, makizha tree, became the sacred tree of the temple.