History· Prelims · GS-I
Kashmir and the North-West: Utpalas, Didda, Hindu Shahis
After the Karkotas, Kashmir passed to the Utpalas, to Queen Didda of the Yashaskaras and then to the Loharas, while the Hindu Shahis held Kabul and Gandhara against the Ghaznavids: the north-west dynasties of the early medieval centuries.
Kashmir in the early medieval centuries is known to us mainly through one book, the Rajatarangini, the river of kings, written in Sanskrit in the twelfth century by the Kashmiri Brahmana Kalhana. It runs to 7,826 verses in eight books called tarangas, and it records the administration, society, politics and economy of the kings of Kashmir. After the Karkota dynasty, whose greatest king Lalitaditya built the Martand Sun Temple, Kashmir passed through three more ruling houses in this article: the Utpalas, the Yashaskaras of Queen Didda, and the Hindu Shahis of the Kabul valley and Gandhara.
Dynasty overview: Kashmir after the Karkotas
The Karkota dynasty, founded by Durlabhvardhana in the early seventh century, made Kashmir a power in Central Asia and north India and built its capital at Parihaspur. Its line ended around 855 CE, when Avanti Varman took the throne and founded the Utpala dynasty. The politics of early medieval Kashmir cannot be understood without three groups who acted as kingmakers: the tantrins, a body of foot soldiers, the ekangas, a body of royal bodyguards, and the damaras, the landed chiefs. Kashmir is also unique for its tradition of powerful queens, and the Rajatarangini names three women rulers: Yashovati of the Gonanda dynasty, Sugandha of the Utpala dynasty, and Didda of the Yashaskara dynasty.
The Utpala dynasty (855-1003 CE)
From the eighth to the tenth century CE the Kashmir region was ruled by the Hindu Utpala dynasty. The kingdom was established by Avanti Varman, who ended the rule of the Karkotas in 855 CE.
Avanti Varman: the administrator king
Avanti Varman (c. 855-883 CE) was the founder of the Utpala dynasty and was known as a great administrator. He took steps to stabilise the state and to regain its power, and he controlled the damaras, the rural aristocrats who caused internal problems. He was a benevolent and beloved king who ensured the prosperity of the entire region. He is credited with major works in irrigation, including steps to prevent the flood waters of the Mahapadma, or Wular, lake from damaging crops. During his reign the cities of Avantipur and Suyapur were founded, and many Hindu temples dedicated to Vishnu and Shiva and Buddhist monasteries were built, notably the Avantiswara and Avantiswami temples.
Sankara Varman: campaigns and a drained treasury
Sankara Varman (c. 883-902 CE), the son of Avanti Varman, led military campaigns into the Punjab and Gujarat. His operations drained the wealth of the treasury, and heavy taxes were imposed on the people. He tried to recover some of the treasury's wealth by fiscal extortion, including plundering temples, but the losses could not be recovered.
The Yashaskara dynasty and Queen Didda
The Yashaskara dynasty is remembered above all for one ruler, Queen Didda. Her career is described in the sixth taranga of the Rajatarangini. She was the wife of king Kshemagupta and the daughter of Simharaja of Lohara, which lay around the Pir Panjal range on a trade route between western Punjab and Kashmir. She was also the granddaughter of Bhima Shahi, one of the Hindu Shahis of Kabul.
Didda ruled first as regent for her son and various grandsons, and afterwards as sole ruler in her own right. Kalhana disapproved of her: he described her as deficient in moral character and merciless by nature, and wrote in detail how she ruthlessly killed her son and three grandsons before ascending the throne. He also wrote that she had an affair with a courier and herdsman named Tuna, who became her trusted confidante. Modern readers treat Kalhana's hostility as the view of a male chronicler, not as a neutral record.
Even before becoming regent Didda had considerable influence in state affairs, and coins have been found which appear to show both her name and that of Kshemagupta. She founded the towns of Diddapura and Kankanapura and a temple called the Diddasvamin temple. After ruling indirectly and directly, Didda placed Sangramaraja, the son of her brother, on the throne, diverting the royal succession from the Yashaskaras to her natal family and thus starting the Lohara dynasty in Kashmir.
The Hindu Shahi dynasty
After the decline of the Kushana Empire, from the third century to the early ninth century CE the Turkish Shahiya dynasty ruled the Kabul valley in eastern Afghanistan and Gandhara in northern Pakistan and Kashmir. They were split into two eras, the Buddhist Shahis and the later Hindu Shahis, with the transition to Hinduism occurring around 870 CE. In the second half of the ninth century CE, Kallar, a Brahmana minister of King Lagaturman, overthrew the Shahiya king and laid the foundation of the Hindu Shahi dynasty. The Shahis ruled predominantly Buddhist and Hindu populations, were patrons of numerous faiths, and their coins and artefacts display a multicultural domain.
Kallar, the founder
Kallar (c. 890-895 CE), referred to in the Rajatarangini as Lalliyashahi, was the Brahmana minister who founded the Hindu Shahi line. He could not hold the Kabul valley for long, and the capital shifted from Kabul to Udabhanda, modern Und village in Rawalpindi district of Pakistan, in the late ninth century after defeat by the Arab commander Yaqub ibn al-Layth. The dating of the shift against Kallar's own reign is uncertain in the sources, so the move is best remembered as a late ninth century event rather than tied to a single year.
Jayapala: the hero of the Ghaznavid wars
Jayapala (c. 964-1001 CE) is celebrated as a hero for his struggles in defending his kingdom from the Turkish rulers of Ghazni. In 986-987 he marched towards Ghazni and met Sabuktigin's forces at Ghuzak. The war remained largely inconclusive for days before the tide turned against the Shahis.
Anandapala and the treaty with Mahmud
Anandapala (c. 1001-1010 CE) suffered many losses at the hands of the Ghaznavids. In the battle of Chach between Mahmud and Anandapala he lost the battle and suffered heavy financial and territorial loss. He eventually signed a treaty with the Ghaznavid Empire around 1010 CE and died a peaceful death about a year later. Out of respect for his resistance against Mahmud of Ghazni, some historians compare him with King Porus, who bravely opposed Alexander.
Trilochanapala and Bhimapala: the last Shahis
Trilochanapala (c. 1010-1022 CE) tried to expand his kingdom by conquering the Shivalik Hills, the domain of the Rai of Sharwa. His kingdom extended from the river Indus to the upper Ganges valley. According to al-Biruni, Trilochanapala was honourable in his loyalty to his father's peace treaty with the Ghaznavids, but he eventually rebelled against Sultan Mahmud and was assassinated by some of his own mutinous troops in 1022 CE, an assassination believed to have been instigated by the Rai of Sharwa. He was romanticised in Punjabi folklore as the last Punjabi ruler of Punjab.
Bhimapala (c. 1022-1026 CE), called the fearless by the historian Utbi, personally commanded the battle of Nandana, where he is said to have seriously wounded the commander of the Ghaznavid army, Muhammad bin Ibrahim. He was the last Shahi emperor. The kingdom collapsed in the early eleventh century under Mahmud of Ghazni's campaigns, and the remaining Shahi army was exiled into northern India. Some later accounts place the final destruction later, but the reign of Bhimapala as the last Shahi ruler, ending around 1026, is the firm anchor for the dynasty's end.
Rulers at a glance
Ruler | Dynasty | Reign | Noted for |
|---|---|---|---|
Avanti Varman | Utpala | c. 855-883 CE | Founder; irrigation works; Avantipur and Suyapur |
Sankara Varman | Utpala | c. 883-902 CE | Campaigns in Punjab and Gujarat; drained treasury |
Sugandha | Utpala | early 10th century | One of the three women rulers named by Rajatarangini |
Didda | Yashaskara | c. 958-1003 CE | Regent then sole ruler; founded Diddapura; began Lohara line |
Kallar (Lalliyashahi) | Hindu Shahi | c. 890-895 CE | Brahmana minister who founded the Hindu Shahi line |
Jayapala | Hindu Shahi | c. 964-1001 CE | Defended the kingdom against Ghazni; marched on Ghazni 986-987 |
Anandapala | Hindu Shahi | c. 1001-1010 CE | Battle of Chach; treaty with Mahmud around 1010 |
Trilochanapala | Hindu Shahi | c. 1010-1022 CE | Expanded into the Shivaliks; assassinated 1022 |
Bhimapala | Hindu Shahi | c. 1022-1026 CE | The fearless; battle of Nandana; last Shahi ruler |
Places to remember
Place | Modern location | Why it matters |
|---|---|---|
Parihaspur | Kashmir | Karkota capital; temple city of Lalitaditya's line |
Avantipur | Kashmir | City founded by Avanti Varman; Avantiswara and Avantiswami temples |
Wular lake (Mahapadma) | Kashmir | Avanti Varman's flood control works protected crops |
Udabhanda (Und) | Rawalpindi, Pakistan | Hindu Shahi capital after the move from Kabul |
Nandana | Punjab, Pakistan | Battle where Bhimapala wounded the Ghaznavid commander |
Prelims practice
Consider the following statements about the Utpala dynasty:
1. Avanti Varman founded the dynasty in 855 CE, ending Karkota rule.
2. Avanti Varman took steps to prevent the flood waters of the Wular lake from damaging crops.
3. Sankara Varman's campaigns enriched the treasury and ended heavy taxation.
Which of the following were named by the Rajatarangini as women rulers of Kashmir?
Queen Didda is described in which taranga of the Rajatarangini?
Consider the following statements about the Hindu Shahis:
1. Kallar, a Brahmana minister, founded the Hindu Shahi dynasty.
2. The capital shifted from Kabul to Udabhanda in the late ninth century.
3. Bhimapala was the last Shahi ruler, reigning around 1022-1026.
Who among the following signed a treaty with the Ghaznavid Empire around 1010 CE after his defeat in the battle of Chach?
Answer key
- Q1. (a) 1 and 2 only. Sankara Varman's campaigns drained the treasury and led to heavy taxes, so statement 3 is wrong.
- Q2. (a) Yashovati, Sugandha and Didda.
- Q3. (c) Sixth taranga.
- Q4. (d) 1, 2 and 3.
- Q5. (b) Anandapala.
Mains Practice question
Q. Assess the contribution of Avanti Varman to the stability of Kashmir and contrast it with the reign of his son Sankara Varman. (150 words)
- Open with the Utpala succession of 855 and the kingmaker groups Avanti Varman had to control.
- Cover irrigation works, the founding of Avantipur and Suyapur, and temple building.
- Contrast with Sankara Varman's campaigns in Punjab and Gujarat, the drained treasury and temple plundering.
- Close with the lesson on administration versus expansion in a small mountain kingdom.
Q. Queen Didda and the Hindu Shahi kings faced very different challenges, yet both reveal the character of early medieval politics in the north-west. Discuss. (250 words)
- Start with the sources: Rajatarangini for Didda, and Utbi and al-Biruni for the Shahis.
- Discuss Didda as regent and sole ruler, her town and temple foundations, and the transfer to the Lohara line.
- Discuss the Shahis from Kallar to Bhimapala, the move to Udabhanda and the Ghaznavid wars.
- Conclude on what the two stories show: succession politics inside Kashmir and a frontier kingdom holding the passes.
Frequently asked questions
Who wrote the Rajatarangini and when?
The Rajatarangini, meaning the river of kings, was written in Sanskrit in the twelfth century by the Kashmiri Brahmana Kalhana. It has 7,826 verses in eight books called tarangas.
Who founded the Utpala dynasty?
Avanti Varman founded the Utpala dynasty in 855 CE, ending the rule of the Karkotas. He was a great administrator known for irrigation works and for founding the cities of Avantipur and Suyapur.
Who was Queen Didda?
Didda was the Yashaskara queen of Kashmir, wife of Kshemagupta and daughter of Simharaja of Lohara. She ruled first as regent and then as sole ruler, founded Diddapura and Kankanapura, and passed the throne to the Lohara dynasty.
Who was the last Hindu Shahi ruler?
Bhimapala, who ruled around 1022-1026, was the last Hindu Shahi ruler. Called the fearless by the historian Utbi, he personally commanded the battle of Nandana before the kingdom collapsed under Mahmud of Ghazni's campaigns in the early eleventh century.