The Nataraja temple has ancient roots, likely following the temple architecture tradition that is found all over South India from at least the 5th century. Textual evidence, such as those of the Sangam tradition, suggest a temple existed here along with Madurai in ancient times, but the town is not named Chidambaram in these pre-5th-century texts. The earliest mention of "dancing god of Chidambaram" as Shiva is found in 6th- and early-7th-century texts by Appar and Sambadar. The "Suta Samhita" embedded inside "Sri Kanda Puranam " and variously dated between 7th and 10th century mentions the Chidambaram dance. The surviving Nataraja temple has a structure that is traceable to the early Chola dynasty. Chidambaram was the early capital of this dynasty, and Shiva Nataraja was their family deity. The Chidambaram temple town remained important to the Cholas, albeit with increasing competition from other temple towns when Rajaraja Chola I moved the capital to Thanjavur, built a new city and the massive Brihadeeswarar Temple dedicated to Shiva in early 11th century, which is now a world heritage site.