Madurai is the administrative headquarters of Madurai District in the South Indian state of Tamil Nadu. It is the third largest city 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 1780 BCE and the 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. The city is believed to be of significant antiquity and has been ruled, at different times, by the Early Pandyas, Medieval Cholas, Later Cholas, Later Pandyas, Madurai Sultanate, Vijayanagar Empire, Madurai Nayaks, Chanda Sahib, Carnatic kingdom, and the British. The city has a number of historical monuments, with the Meenakshi Amman Temple and Tirumalai Nayak Palace being the most prominent. Madurai is an important industrial and educational hub in South Tamil Nadu. The city is home to various automobile, rubber, chemical and granite manufacturing industries. It has developed as a second-tier city for information technology, and some software companies have opened offices in Madurai. Madurai has important government educational institutes like the Madurai Medical College, Homeopathic Medical College, Madurai Law College, Agricultural College and Research Institute. Madurai city is administered by a municipal corporation established in 1971 as per the Municipal Corporation Act. Madurai is the second corporation in Tamil Nadu next to Chennai corporation. The city covers an area of 147.99 km2 and had a population of 1,017,865 in 2011. The city is also the seat of a bench of the Madras High Court, one of only a few courts outside the state capitals of India.