Thanjavur, formerly Tanjore, is a municipality and the headquarters of the Thanjavur District in the Indian state of Tamil Nadu. The name Thanjavur is derived from "Tanjan", a legendary asura in Hindu mythology. Thanjavur is one of the ancient cities in India and has a long and varied history dating back to the Sangam period. The town was founded by Mutharayar king Swaran Maran and rose to prominence during the rule of the Later Cholas when it served as the capital of the Chola empire. After the fall of the Cholas, the city was ruled by various dynasties like Pandyas, Vijayanagar Empire, Madurai Nayaks, Thanjavur Nayaks and British. It has been a part of independent India since 1947.