sentences:  In a battle at Ammayanayakkanur near Dindigul, Bangaru Thirumala’s army, largely strengthened by some Polygars, fought a well-contested battle against the Queen and Chanda Sahib with over 80,000 soldiers, but was finally defeated, taking refuge in Sivaganga palace.Chanda Sahib, after the victory over Bangaru Tirumala, proclaimed himself ruler of Meenakshi’s kingdom, after locking the queen up in her palace, later driving her to consume poison, thus putting an end to over 200 years of Nayak rule in Madurai.Bangaru Tirumala still undaunted joined with the Tanjore Marathas to oust Chanda Sahib.