The political history of medieval Karnataka spans the 4th to the 16th centuries, when the empires that evolved in the Karnataka region of India made a lasting impact on the subcontinent. Before this, alien empires held sway over the region, and the nucleus of power was outside modern Karnataka. The medieval era can be broadly divided into several periods: The earliest native kingdoms and imperialism; the successful domination of the Gangetic plains in northern India and rivalry with the empires of Tamilakam over the Vengi region; and the domination of the southern Deccan and consolidation against Muslim invasion. The origins of the rise of the Karnataka region as an independent power date back to the fourth-century birth of the Kadamba Dynasty of Banavasi, the earliest of the native rulers to conduct administration in the native language of Kannada in addition to the official Sanskrit. This is the historical starting point in studying the development of the region as an enduring geopolitical entity and of Kannada as an important regional language.
In the southern regions of Karnataka, the Western Gangas of Talakad were contemporaries of the Kadambas. The Kadambas and Gangas were followed by the imperial dynasties of the Badami Chalukya Empire, the Rashtrakuta Empire, the Western Chalukya Empire, the Hoysala Empire and the Vijayanagara Empire, all patronising the ancient Indic religions while showing tolerance to the new cultures arriving from the west of the subcontinent. The Muslim invasion of the Deccan resulted in the breaking away of the feudatory Sultanates in the 14th century. The rule of the Bahamani Sultanate of Bidar and the Bijapur Sultanate from the northern Deccan region caused a mingling of the ancient Hindu traditions with the nascent Islamic culture in the region. The hereditary ruling families and clans ably served the large empires and upheld the local culture and traditions. The fall of the Vijayanagara Empire in 1565 brought about a slow disintegration of Kannada-speaking regions into minor kingdoms that struggled to maintain autonomy in an age dominated by foreigners until unification and independence in 1947.
Kadambas and Gangas
Prior to and during the early centuries of the first millennium, large areas of the Karnataka region was ruled by such imperial powers as the Mauryas of Maghada and later the Satavahanas, empires whose centres of power were in the Gangetic plains and Central India respectively. With the weakening of the Satavahanas, the Pallavas of Kanchi took control for a brief duration. In the 4th century, the rise to power of the Kadamba Dynasty of Banavasi identified the Karnataka region as an independent political entity and Kannada as an administrative language from the middle of the 5th century. The Kadambas were natives of the Talagunda region (in modern Shivamogga district) as proven by inscriptions. Mayurasharma, a Brahmin native of Talagunda who was humiliated by a Pallava guard, rose in rage against the Pallava control of the Banavasi region and declared his independence in 345. After many wars, the Pallava king had to accept the sovereignty of the Kadambas and Mayurasharma, the founding king, crowned himself at Banavasi (in the present day Uttara Kannada district).
The fact that the Kadambas cultivated marital ties with the imperial Vakatakas and Gupta dynasties attests to their power. Kakusthavarma, the most powerful ruler of the dynasty whom inscriptions describe as "ornament of the Kadamba family" and "Sun among the kings of wide spread flame", gave one daughter in marriage to Vakataka Narendrasena and another to Skandagupta, grandson of Chandragupta II of the Gupta dynasty. Historians trace their rise to political power through the examination of the contemporaneous Sanskrit writing, Aichitya Vichara Charcha by Kshemendra, which quotes portions of a writing Kunthalesvara Dautya by the famous poet Kalidasa. Here Kalidasa describes his visit to the Kadamba kingdom as an ambassador where he was not offered a seat in the court of the Kadamba king and had to sit on the ground. Historians view this act as one of assertion by the Kadambas who considered themselves equal to the imperial Gupta dynasty.