of Hindu rituals in the Kailasanathar Temple that had been abandoned during the Muslim invasions. Inscriptions of the Vijayanagara kings Harihara II, Deva Raya II, Krishna Deva Raya, Achyuta Deva Raya, Sriranga I, and Venkata II are found within the city. Harihara II endowed grants in favour of the Varadharaja Perumal Temple.In the 15th century, Kanchipuram was invaded by the Velama Nayaks in 1437, the Gajapati kingdom in 14631465 and 147475 and the Bahmani Sultanate in about 1480. A 1467 inscription of Virupaksha Raya II mentions a cantonment in the vicinity of Kanchipuram. In 1486, Saluva Narasimha Deva Raya, the governor of the Kanchipuram region, overthrew the Sangama Dynasty of Vijayanagara and founded the Saluva Dynasty. Like most of his predecessors, Narasimha donated generously to the Varadharaja Perumal Temple. Kanchipuram was visited twice by the Vijayanagara king Krishna Deva Raya, considered to be the greatest of the Vijayanagara rulers, and 16 inscriptions of his time are found in the Varadharaja Perumal Temple. The inscriptions in four languagesTamil, Telugu, Kannada, and Sanskritrecord the genealogy of the Tuluva kings and their contributions, along with those of their nobles, towards the upkeep of the shrine. His successor, Achyuta Deva Raya, reportedly had himself weighed against pearls in Kanchipuram and distributed the pearls amongst the poor. Throughout the second half of the 16th and first half of the 17th centuries, the Aravidu Dynasty tried to maintain a semblance of authority in the southern parts after losing their northern territories in the Battle of Talikota. Venkata II (15861614) tried to revive the Vijayanagara Empire, but the kingdom relapsed into confusion after his death and rapidly fell apart after the Vijayanagara king Sriranga III's defeat by the Golconda and Bijapur sultanates in 1646. After the fall of the Vijayanagara Empire, Kanchipuram endured over two decades of political turmoil. The Golconda Sultanate gained control of the city in 1672, but lost it to Bijapur three years later. In 1676, Shivaji arrived in Kanchipuram at the invitation of the Golconda Sultanate in order to drive out the Bijapur forces. His campaign was successful and Kanchipuram was held by the Golconda Sultanate until its conquest by the Mughal Empire led by Aurangazeb in October 1687.In the course of their southern campaign, the Mughals defeated the Marathas under Sambhaji, the elder son of Shivaji, in a battle near Kanchipuram in 1688 which caused considerable damage to the city but cemented