The Tripartite Struggle (785–816), also known as the Kannauj Wars, were a series of wars for the control of Kannauj in Northern India during the late 8th and early 9th centuries, involving the Gurjara-Pratiharas, Palas and Rashtrakutas. The Ayudhas of Kannauj, became the centre of the conflict. Around 800 AD, the Rashtrakuta emperor Dhruva intervened and defeated the Pratiharas, Palas, and Ayudhas. His son, Govinda III also defeated and subjucated them. However, instead of making Kannauj his capital, he appointed Chakrayudha as it's puppet ruler, and withdrew. After the death of Govinda III in 814 AD, Rashtrakuta intervention lapsed and anarchy spread in Kannauj, which allowed Nagabhata II to defeat Chakrayudha and his protégé, Dharmapala of the Pala Empire. With the end of the Tripartite struggle, and victory of Nagabhata II, Kannauj became the capital of the Pratihara dynasty. In the late eighth century, the two major powers of Northern India were the Pratihara dynasty, who ruled the Gurjaradesha, and the Pala Empire, who ruled the Gauda (Bengal). While the Pratiharas gradually expanded their domains eastwards, the Palas extended their authority westwards. In Southern India and the Deccan, the Rashtrakutas ruled a powerful empire and also sought to extend their supremacy over northern India. The competing ambitions of these three powers brought them into conflict over the strategically important city of Kannauj, then ruled by the Ayudha dynasty, leading to a prolonged series of wars known as the Tripartite Struggle.
Background According to the Epigraphist Dineschandra Sircar, the struggle between the Pratihara and the Rashtrakuta had begun earlier than the struggle over the Kingdom of Kannauj. These two powers shared a common frontier in the Gujarat and Malwa regions. The frontier was a shifting one and far from permanent, causing enmity between the two powers. Even before the struggle over Kannauj started, Dantidurga, the founder of the Rashtrakuta Empire, had defeated Nagabhata I of the Pratihara dynasty, as evident from the Dashavatara Temple inscription of Dantidurga at Ellora and the Sanjan inscription of Amoghavarsha I, both belonging to the Rashtrakuta dynasty which states that Dantidurga (r. 735–756) performed a religious ceremony at Ujjayani, and the king of Gurjara-desha (Gurjara country) acted as his door-keeper (pratihara), suggesting that the Rashtrakuta king had subdued the Pratihara king who was ruling Avanti at that time. On the other hand, the conflict between the Palas of Gauda/Bengal and the Ayudhas of Kannauj was the continuation of an old power struggle that had started between Harshavardhana of Kannauj and Sasanka of Gauda in the 7th century and would continue till the 12th century. These regional struggles were escalated to a greater pitch over the issue of succession of the Ayudha dynasty. Also, the involvement of the four powers, i.e. the Pratihara Empire, the Pala Empire, the Rashtrakuta Empire, and the Kingdom of Kannauj meant that it was actually a four-power struggle.
Prelude
By the eighth century, the Pushyabhuti dynasty which had controlled much of northern India under Harshavardhana in the seventh century had greatly diminished in power under a succession of weak kings, and was replaced by two new great powers in North India — the Kingdom of Gurjara to the west and the Kingdom of Bengal to the east. In southern India, the Rashtrakuta royal family reigned, whose king Dhruva too had imperial ambitions to rule northern India. The king of the Gurjaras, Vatsaraja, the grand-nephew of Nagabhata I, expanded the small principality founded by his ancestor into a powerful kingdom in northwestern India. His ambitions matched those of Dharmapala, the king of Bengal who too wanted glory for himself and wanted to extend his power beyond his ancestral domain in eastern India. The throne of Kannauj was equivalent to having imperial status over all of northern India and thus, Vatsaraja, Dharmapala, and Dhruva, all sought to control it. The incumbents of the Kannauj throne at that time, the Ayudha dynasty were weak rulers and the accession of Indrayudha triggered the first great war.
First Tripartite War (AD 785–790) The first move was made by Vatsaraja (of the Pratihara dynasty), soon after the ascension of the new king of Kannauj, Indrayudha. He swiftly invaded Kannauj and defeated the king. The weak king accepted the overlordship of Vatsaraja. Following this success, Vatsaraja proceeded to invade Bengal. His vassal, Durlabharaja I, the king of Sambhar pursued the forces of the king of Gauda and defeated Dharmapala. His men looted the royal treasury, and Vatsaraja set back on his way to his kingdom. Vatsaraja adopted the title Ranahastin following this victory. However, the ambitious king of the South, Dhruva (of the Rashtrakuta dynasty) decided to intervene in the ongoing conflict of the northern kingdoms. While Vatsaraja was on his return journey with the spoils of war, he was defeated by Dhruva's forces, and was thus forced to flee and hide in the deserts of Maru. Following this, Dhruva met and defeated Dharmapala in the Doab. Dhruva however, had no intentions for any permanent territorial conquests and only intended to raid the invaded regions. He thus returned to the South in 790.
Dharmapala's invasion of Kannauj (AD 791) Following the departure of Dhruva, Dharmapala grabbed the opportunity and invading the kingdom of Kannauj around 791, defeated Indrayudha and installed his brother Chakrayudha as his vassal, clearly avoiding annexation. He then held an imperial court at Kannauj to crown Chakrayudha, which was attended by the rulers of Bhoja, Matsya, Madra, Kuru, Yadu, Yavana, Avanti, Gandhara and Kira. These kings accepted the installation of Chakrayudha on the Kannauj throne, while "bowing down respectfully with their diadems trembling". Some historians have speculated that all these kingdoms might have been the vassal states of the Pala empire but maintained their autonomy.
… excerpt ends here. Continue reading the full article.

