Puranical Story - Ancient Story of SriRangam

They were stopped by Jaya and Vijaya, the guardians of Vaikuntha. In spite of their pleadings, they were refused entry. In anger, all four of them cursed the guardians in one voice and left. The guardians approached Vishnu and told him about the curse. Ranganatha said that he would not be able to revert the curse and gave them two options: be born as demons opposing Vishnu in three births or good human beings in the following seven births.

Puranical Story - Ancient Story of SriRangam
Sri rangam temple puranical story A painting of Ranganatha Swami from Tiruchirapalli.

The temple and its artwork are a subject of numerous different Tamil legends covered in regional Puranic texts. Sriranga Mahathmiyam, for example, is one of the compilations of the temple mythology about its origins.

Also Read:- 

Puranical Story - Ancient Story of Sri Rangam

History- Sri vaishnavism and Puranical Story or ancient Story of Srirangam

A short Note on Ranganathaswamy Temple, Srirangam

According to it, Brahma was performing austerities during the Samudra Manthan (churning of the cosmic ocean), and Srirangam Vimanam emerged as a result. It remained in Satyaloka for ages, was brought to Ayodhya by king Ikshvaku. After Rama, an Avatar of Vishnu had killed the evil demon Ravana, he gave it to King Vibhishana who wanted to be with Rama.

When Vibhishana passed through Trichy en route to Sri Lanka where he had become the king, the Srirangam Vimanam would not move from the island.

So he gave it to a local king called Dharma Varma if the king consecrated the Vimanam to face the south cardinal direction eternally, blessing him and Lanka.

Hence it is that the deity (in a reclining posture) faces South, his body aligned to the east-west axis. As per another legend, Sanaka, the four child sages, came for a Darshana of Ranganatha in Srirangam.

They were stopped by Jaya and Vijaya, the guardians of Vaikuntha. In spite of their pleadings, they were refused entry. In anger, all four of them cursed the guardians in one voice and left.

The guardians approached Vishnu and told him about the curse. Ranganatha said that he would not be able to revert the curse and gave them two options: be born as demons opposing Vishnu in three births or good human beings in the following seven births.

Eager to be back with the Lord, The guardians accepted being demons and are believed to have taken the form of Hiranyaksha and Hiranyakasipu; Ravana and Kumbakarna; and Sisupala and Dantavakra.

Vishnu took four avatars – Varaha, Narasimha, Rama, and Krishna, respectively – to kill the demons in each one of those births.