Ulagalanda Perumal Temple was built by Jayam Konda Chola. This incarnation of Lord Vishnu is called as the Vamana Avatar. This talks about the Divine happening of measuring the entire universe [ulagu = world; alantha=measured] in one step by Lord Vishnu in the form of a Brahman, as a gift from King Maha Bali. The Sanctum Sanctorum has a 35 foot Idol of Lord Vishnu. Bhagavata Purana describes that Vishnu descended as the Vamana avatar to restore the authority of Indra over the heavens, as it had been taken by Mahabali, a benevolent Asura King. Bali was the grandson of Hiranyakshipu, the son of Prahlada. King Mahabali was generous, and engaged in severe austerities and penance and won the praise of the world. With the praise from his courtiers and others, he regarded himself as the all-powerful in the world. Vamana, in the guise of a short Brahmin carrying a wooden umbrella, went to the king to request three paces of land. Mahabali consented, against the warning of his guru, Sukracharya. Vamana then revealed his identity and enlarged to gigantic proportions to stride over the three worlds. He stepped from heaven to earth with the first step, from earth to the netherworld with the second. King Mahabali, unable to fulfil his promise, offered his head for the third. Vamana then placed his foot and gave the king immortality for his humility. In worshiping Mahabali and his ancestor Prahláda, he conceded sovereignty of Pátála, the netherworld. Some texts also report that Vamana did not step into the netherworld, and instead gave its rule to Bali. In giant form, Vamana is known as Trivikrama. The legend is associated with the Thrikkakara Temple in Kerala and also with this temple and Ulagalantha Perumal Temple, Tirukoyilur.