Kirtivarman II also known as Rahappa (746 – 753 CE) was the last ruler in the Badami Chalukya dynasty. He succeeded his father Vikramaditya II. His reign was continuously troubled by the growing power of the Rashtrakutas and Pandyas and finally succumbed to them.
Kirtivarman and his Ganga feudatory Sripurusha came into conflict with the Pandya ruler Maravarman Rajasimha I who was extending the Pandya empire on to the Kongu country which was adjacent to the Ganga kingdom. Rajasimha crossed the Kaveri and engaged Kirtivarman and Sripurusha in a big battle at Venbai on the banks of the river Kaveri. The Chalukya king was defeated.
Kirtivarman was steadily undermined by the activities of Rashtrakuta Dantidurga who was establishing the Rashtrakuta Empire. Dantidurga was a feudatory of the Chalukyas and was beginning to establish an independent kingdom around Ellora.
Dantidurga managed to wrest control of the northern provinces of the Chalukyan kingdom, he also completely surrounded the Chalukya in the east and the south by conquering the Telugu provinces, Kalinga and Kosala kingdoms. Dantidurga also went into an alliance with the Pallava Nandivarman II. Thus isolated, Kirtivarman could not turn to any direction for help.
The final assault on Kirtivarman came in 752 and completely overwhelmed the Chalukyan kingdom.