During the 1st century CE, the Chola king Karikal Cholan captured the Pandya kingdom and Dindigul came under Chola rule. During the sixth century, the Pallavas took over Dindigul along with most of southern India, and was ruled by them until 8th century CE when the Cholas retook it. During the Delhi Sultanate's raids into southern India, Dindigul was not attacked, and later that century the city became part of the Vijayanagara Empire. The commander of the Vijayanagara army Kampanna Udayar played an important role in the war in capturing Madurai which was under the Madurai Sultanate. In 1559 Nayaks became powerful and their territory bordered with Dindigul in the north. After the death of king Viswanatha Nayak in 1563, Muthukrisna Nayakka became the king of a kingdom in 1602 A.D who built the strong hill fort in 1605 A.D. He also built a fort at the bottom of the hill. Muthuveerappa Nayak and Thirumalai Nayak followed Muthukrishna Nayak. Dindigul came to prominence once again during Nayaks rule of Madurai under Thirumalai Nayak. After his immediate unsuccessful successors, Rani Mangammal became the ruler of the region who ruled efficiently.