It is one of the five ancient shrines in the Chengannur area of Kerala, connected with the legend of Mahabharata. Legend has it that the Pandava princes, after crowningParikshit as king ofHastinapura left on a pilgrimage. On arriving on the banks of river Pamba, each one is believed to have installed a tutelary image of Krishna; Thrichittatt Maha Vishnu Temple by Yudhishthira, Puliyur Mahavishnu Temple by Bheema, Aranmula Parthasarathy Temple by Arjuna, Thiruvanvandoor Mahavishnu Temple by Nakula and Thrikodithanam Mahavishnu Temple by Sahadeva. 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 Saptarishis 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 austerities were given to Sapta Rishis, it might increase the wealth and beauty of the Empire. As a result of this, he invited Saptarishis, the seven important sages. But, the Saptarishis did not accept his charity, since they felt that the reduction of wealth and health in the entire empire were on account of the deeds of the ruling king. But, the king wanted them to accept his donation, and as a result of this, he asked his palace officials to keep some gold inside the fruits and give them that, so that they would accept that and simultaneously his charity is also accepted. But, knowing the truth that some golds are placed inside the fruit through their yogic power, the sages did not accept the fruits also. Virukshadharbi got angry with the Saptharishis and tried them to kill and as a result of this cruel mind, he started an Yaagam in which a lady Pishacha by named "Kiruthyai" arose and he ordered the demon to kill all them. Knowing this, Emperumaan sent Indra to destroy Kiruthyai and to protect the sages. Indra killed the demon and all the Sapta Rishis got the seva of the Emperumaan and got their Mukthi. During Mahabharata war, Bhima underwent penance worshipping the lord here. Bheema was the powerful among the five brothers and this temple is large indicating his largess. Also the Gatha, the weapon used by Bheema is believed to be present in the temple.
History
Earliest references to this temple appear in the poems and hymns composed by the greatest of Alvar saints - Nammalvar, in circa 800 AD. Stone inscriptions in the temple date it back to the Second Chera Empire. Another of the Azhwars, ThirumangaiAzhwar has mentioned Thirupuliyur in one of his verses in his Siriya Thirumadal.