HistoryThe main source for the first two hundred years of the history of the place is the "Complete History of the Carnatic Kings" among the Mackenzie manuscripts. According to historian Narayan, a small village called Melacerri, located 3 mi (4.8 km) away from Gingee is called "Old Gingee" has traces of fortifications from about 1200 AD. Ananda Kon of the shepherd community (Konar-Yadav), accidentally found a treasure in one of the cavities of the Western hill while grazing his sheep. Making himself the head of a small band of warriors, he defeated the petty rulers of the neighbouring villages and built a small fortress on Kamalagiri, which he renamed Anandagiri after himself. The Konar dynasty ruled Gingee from 1190 to 1330 AD, and was succeeded by the chief of a neighbouring place called Kobilingan, who belonged to the Kurumba caste and ascended the throne of Gingee. He was a feudatory of the powerful Cholas. Gingee came into the hands of various ruling dynasties of South India, starting from the Cholas.
Originally the site of a small fort built by the Chola dynasty during the 9th century AD, Gingee Fort was modified by Kurumbar while fighting the Cholas and again by the Vijayanagar empire during the 13th century. As per one account, the fort was built duirng the 15-16th century by the Nayaks, the lietunants of the Vijayanagara Empire and who later became independent kings.The fort was built at a strategic place to fend off any invading armies. It was further strengthened by the Marathas under the leadership of Shivaji in 1677 AD. He recaptured it from the Bijapur sultans who had originally taken control of the fort from the Marathas. During Aurangzeb's campaign in the Deccan, Shivaji's second son who had assumed the throne, Chhatrapati Rajaram, escaped to Ginjee and continued the fight with Moghuls from Ginjee. The fort was the seat of the Maratha Empire for a few months. The Moghuls could not capture the fort for seven years in spite of laying siege. The fort was finally captured in 1698, but not before Chhatrapati Rajaram escaped. It was later passed on to the Carnatic Nawabs who lost it to the French in 1750 before the British finally took control in 1761 despite losing it to Hyder Ali for a brief period. Raja Desinghu ruled Chenji during the 18th century