It is said that this sthalam is constructed and built by Bhima, one of the Panja - Paandavaas. He worshipped this sthalaperumal, Maayapiraan. Sapta Rishis - Atthri, Vasishtar, Kaasyapar, Gouthamar, Bharadwajar, Vishvamitra and Jamadagni got the seva of this Maayapiraan along with porkodi Naachiyaar and through Indra, it is said that all these Saptaris his got their Mukti towards the Emperumaan.
Once, Virukshadharbi, who was the son of Sibhi Chakravarthy, ruled an empire where there was flood and there was no proper vegetation and the wealth and the beauty of the entire empire seems to be decreasing.
At that time, the king thought, if any Dhaanam (things that are given to any rishis,devotees to increase any thing) is given to Sapta Rishis, it might increase the wealth and beauty of the Empire.
As a result of this, he thought of giving the Dhaanam to Saptha rishis. But, Sapta Rishis did not accept his Dhaanam, Since if any flood (or) decrease in the wealth and health in the entire empire is due to some reasons of the ruling king. So, they found some problem might by with virukshadherbi and did not accept the Dhaanam.