is the largest functioning religious complex in the world and mentioned in the
Sangam literature of the
Sangam era (500 BCE - 300 CE), there are mentions in many books like
Akanaṉūṟu,
Purananuru,
Paripāṭal and
Silapadikaram. The temple was first built by the Chola ruler,
Dharmavarma. The Kaveri river flood destroyed the temple, and later, the early Cholas King
Killivalavan rebuilt the temple complex after seeing the
Golden Vimana directed by a parrot. Beyond the ancient textual history, archaeological evidence such as inscriptions refer to this temple, and these stone inscriptions are from late
100 BCE to 100 CE. Hence, making it one of the oldest surviving active temple complexes in South India. there are many mandapas which were built near the main
Sanctum Sanctorum which dates around
100 CE to 300 CE built by
Uraiyur Cholas. The inscriptions of the
Medieval Cholas are replete with history about the Early Chola kings. The Cholas were looked upon as descended from the sun. These historic incidents speak of the Chola king
Kantaman, supposed contemporary of the sage
Agastya, whose devotion brought the river Kaveri into existence. There is also the story of the king
Manu who sentenced his son to death for having accidentally killed a calf. Mahavamasa portrays King
Ellaalan who was defeated by
Duttha Gamini () as the just king who '..had a bell with a rope attached at the head of his bed, so that all who sought redress might ring it..'. King
Sibi who rescued a dove from a hawk by giving his own flesh to the hungry hawk was also part of the early Chola history. These historic incidents received enormous emphasis in the later Chola period in the long mythical genealogies incorporated into the copper-plate charters of the 10th and 11th centuries. The earliest version of this is found in the
Anbil Plates which gives fifteen names before Vijayalaya Cholan including the historical ones of Karikala, Perunarkilli and Kocengannan. The Thiruvalangadu Plate swells this list to forty-four, and the Kanyakumari Plate runs up to fifty-two. There are other lists gathered from literary works such as
Kalingathuparani. No two of these lists agree, although some names and details are common to all. The Chola kings namely Dharmavarcholan and Killivalavan developed the shrine of Srirangam into big temple seen now. They laid the basic foundations and primary Buildings. Killi, Thiru Mangai, Kulasekaran, Rajamahendra and Thiru Vikrama were named in the Sri Ranganathar temple in Tiruchchirappalli as being ancestors of Killivallavan. Dharmavarma was another ancestor of Killivallavan, possibly his father. It is located in the middle of the Trichy town. ==Cholas in Sangam literature==