Madurai is the administrative headquarters of Madurai District in the South Indian state of Tamil Nadu. It is the third largest city and the Second largest municipal corporation in Tamil Nadu. Located on the banks of River Vaigai, it has been a major settlement for two millennia and is one of the oldest continuously inhabited cities in the world. Madurai is closely associated with the Tamil language as all three primary congregations of Tamil scholars, the Third Tamil Sangams, were held in the city between the 1780 BCE to 3rd century CE. The recorded history of the city goes back to the 3rd century BCE, being mentioned by Megasthenes, the Greek ambassador to India, and Kautilya, a minister of the Mauryan emperor Chandragupta Maurya.