stylistic:tone
History

The Buddhist text Mahavamsa mentions Madurai in the context of Prince Vijaya 's (543–505 BCE) arrival in Sri Lanka with his 700 followers. According to the Mahavamsa, emissaries laden with precious gifts, jewels and pearls, were sent from Sri Lanka to Madurai of ancient Tamilakam. Their mission was to secure a bride for Prince Vijaya. The Pandyan King of Madurai agreed to the proposal. He not only sent his own daughter to marry Prince Vijaya but also requested other families to offer their daughters to marry the prince's ministers and retainers. So, along with the Princess and hundreds of maidens, craftsmen and a thousand families from the eighteen guilds were also sent to Sri Lanka.

Madurai has been inhabited since at least the 3rd century BCE. Megasthenes may have visited Madurai during the 3rd century BCE, with the city referred as "Methora" in his accounts. The view is contested by some scholars who believe "Methora" refers to the north Indian city of Mathura, as it was a large and established city in the Mauryan Empire. Madurai is also mentioned in Kautilya 's (370–283 BCE) Arthashastra. Sangam literature like Maturaikkāñci records the importance of Madurai as a capital city of the Pandyan dynasty. Madurai is mentioned in the works of Roman historians Pliny the Younger (61 – c. 112 CE), Ptolemy (c. 90 – c. CE 168), those of the Greek geographer Strabo (64/63 BCE – c. 24 CE), and also in Periplus of the Erythraean Sea.

After the Sangam age, most of present-day Tamil Nadu, including Madurai, came under the rule of the Kalabhra dynasty, which was ousted by the Pandyas around 590 CE. The Pandyas were ousted from Madurai by the Chola dynasty during the early 9th century. The city was fought over between the Cholas and the Pandyas during the 12th century, changing hands several times, until the early 13th century, when the second Pandyan empire was established with Madurai as its capital. After the death of Kulasekara Pandian (1268–1308 CE), Madurai came under the rule of the Delhi Sultanate. The Madurai Sultanate then seceded from Delhi and functioned as an independent kingdom until its gradual annexation by the Vijayanagara Empire in 1378 CE. Madurai became independent from Vijayanagar in 1559 CE under the Nayaks. Nayak rule ended in 1736 CE and Madurai was repeatedly captured several times by Chanda Sahib (1740 – 1754 CE), Arcot Nawab and Muhammed Yusuf Khan (1725 – 1764 CE) in the middle of the 18th century.

In 1801, Madurai came under the direct control of the British East India Company and was annexed to the Madras Presidency. The British government made donations to the Meenakshi temple and participated in the Hindu festivals during the early part of their rule. The city evolved as a political and industrial complex through the 19th and 20th centuries to become a district headquarters of a larger Madurai district. In 1837, the fortifications around the temple were demolished by the British. The moat was drained and the debris was used to construct new streets – Veli, Marat and Perumaal Mesthiri streets. The city was constituted as a municipality in 1866 under the Town Improvement Act of 1865. The British government faced initial hiccups during the earlier period of the establishment of municipality in land ceiling and tax collection in Madurai and Dindigul districts under the direct administration of the officers of the government. The city, along with the district, was resurveyed between 1880 and 1885 CE and subsequently, five municipalities were constituted in the two districts and six taluk boards were set up for local administration. Police stations were established in Madurai city, housing the headquarters of the District Superintendent.

It was in Madurai, in 1921, that Mahatma Gandhi, pre-eminent leader of Indian nationalism in British-ruled India, first adopted the loin cloth as his mode of dress after seeing agricultural labourers wearing it. Leaders of the independence movement in Madurai included N. M. R. Subbaraman, Karumuttu Thiagarajan Chettiar and Mohammad Ismail Sahib. The Temple Entry Authorization and Indemnity Act passed by the government of Madras Presidency under C. Rajagopalachari in 1939 removed restrictions prohibiting Shanars and Dalits from entering Hindu temples. The temple entry movement was first led in Madurai Meenakshi temple by independence activist A. Vaidyanatha Iyer in 1939.

In 1971, the municipality of Madurai was upgraded to a Municipal Corporation. In 2011 the Corporation of Madurai expanded the area of its jurisdiction from seventy-two wards to one hundred wards, an increase in area from 51.82 square kilometres (12,810 acres) to 147.997 square kilometres (36,571 acres).