The Sri Ranganathaswamy Temple or Thiruvarangam is a Hindu temple dedicated to Ranganatha, a reclining form of the Hindu deity Vishnu, located in Srirangam, Tiruchirapalli, Tamil Nadu, India . Constructed in the Tamil style of architecture, this temple is glorified in the Thiviya Pirabandham, the early medieval Tamil literature canon of the Alvarsaints from the 6th to 9th centuries AD and is counted among the 108 Divya Desams dedicated to Vishnu. The temple follows Thenkalai tradition of worship. Sriranga Mahathmiyam is the compilation of religious accounts of the temple which detail the origins of its greatness. According to it, Lord Rama, an Avatar of Vishnu, worshiped the idol for a long time, and when he returned victoriously from Lanka after killing Ravana, he gave it to King Vibhishana as a token of appreciation for supporting him against Vibhishana's own brother, Ravana.[8] When Vibhishana was going via Trichy en route to Sri Lanka, the deity wanted to stay in Srirangam. Ranganatha, captivated by the devotion of a King called Dharma Varma, who was doing penance to have Lord Ranganatha permanently stay in Srirangam, stayed put, promising to cast his benign glance eternally on Lanka. Hence it is that the deity (in a reclining posture) faces South.