Utpala and Lohara Dynasties
Trace the history of the valley through the rule of Avantivarman and Queen Didda.
General Knowledge with special reference to J&K UT › J&K UT History · 18 min read
The Dawn of the Utpalas
If you recall from our previous chapter on the Karkota dynasty, the great empire built by Lalitaditya Muktapida eventually crumbled. His successors were weak, and the Kashmir valley plunged into decades of civil war, economic ruin, and political chaos. The throne became a musical chair for rival factions.
But history has a way of producing the right leader when things look bleakest. In 855 CE, a nobleman named Avantivarman ascended the throne, bringing the chaotic Karkota era to a definitive close and establishing a brand new ruling house: the Utpala Dynasty.
Avantivarman was exactly what Kashmir needed at that moment. He was not a restless conqueror looking to expand his borders through endless, expensive wars. Instead, he was a healer and a consolidator. He looked inward, focusing his entire reign on restoring peace, rebuilding the shattered economy, and bringing prosperity back to the common people of the valley.
Avantivarman: The Builder King
Avantivarman’s reign (855–883 CE) is remembered as a golden age of internal peace and architectural brilliance. Because he wasn't draining the royal treasury on foreign military campaigns, he had the resources to invest heavily in public welfare and culture.
He founded a magnificent new capital city and named it Avantipur (which survives today as the town of Awantipora, located on the Srinagar-Jammu highway). To decorate his new city, he commissioned two massive, intricately carved stone temples that stand as masterpieces of Kashmiri architecture:
- 1The Avantiswami Temple: Dedicated to Lord Vishnu.
- 2The Avantisvara Temple: Dedicated to Lord Shiva.
Even today, the ruins of these temples in Awantipora draw historians and tourists alike, showcasing the immense wealth and artistic peak of the Utpala period.
Avantivarman was also a great patron of literature and the arts. His royal court was a gathering place for some of the greatest Sanskrit scholars of the era, including the famous poet Ratnakara and the literary critic Anandavardhana. Under his rule, the sword was finally sheathed, and the pen took center stage.
Suyya's Genius: Taming the Jhelum
While Avantivarman was a great king, his reign is equally famous for the achievements of his brilliant prime minister and chief engineer, a man named Suyya.
To understand Suyya's genius, you have to understand the geography of Kashmir. The valley is shaped like a giant bowl, and all its water drains into the Jhelum river (known historically as the Vitasta). The Jhelum exits the valley through a narrow mountain gorge near Baramulla.
During Avantivarman's time, this narrow gorge had become heavily choked with massive boulders and silt, likely due to landslides and earthquakes. Because the water couldn't escape the valley, the Jhelum backed up, causing catastrophic, perennial floods. Crops were submerged, villages were destroyed, and a severe famine gripped the land.
Suyya claimed he could solve the problem, but he told the king he needed a massive amount of money to do it. Many in the court thought Suyya had lost his mind, but Avantivarman trusted him and gave him pots full of gold and silver coins (Dinnaras).
What Suyya did next is one of the most fascinating pieces of psychological engineering in history.
Suyya's Flood Control Method
- 1Step 1: Suyya took boats filled with gold and silver coins to the choked gorge at Baramulla.
- 2Step 2: To the shock of onlookers, he threw the treasure directly into the flooded, boulder-filled river.
- 3Step 3: Desperate, starving villagers immediately dove into the freezing water to find the coins.
- 4Step 4: While searching for the money, the villagers dragged out the heavy rocks, boulders, and silt.
- 5Step 5: The riverbed was cleared by the people themselves, allowing the trapped floodwaters to finally drain out of the valley.
Once the initial blockage was cleared, Suyya didn't stop there. He built temporary stone dams to halt the river's flow completely for a few days, allowing his workers to safely enter the dry riverbed, deepen it, and build strong protective embankments along the sides. He also changed the confluence point of the Jhelum and the Sind rivers to a more favorable location, preventing the formation of swamps.
The results were miraculous. Thousands of acres of waterlogged land were reclaimed for agriculture. The production of rice skyrocketed, and the price of paddy dropped drastically from 200 Dinnaras to just 36 Dinnaras. Suyya had saved Kashmir from starvation.
In honor of his incredible work, a new town was founded and named Suyyapur.
The Decline of the Utpalas
Avantivarman died in 883 CE, and the peace he had so carefully built died with him. He was succeeded by his son, Sankaravarman (883–902 CE), who completely reversed his father's policies.
Sankaravarman was hungry for military glory. He launched numerous foreign campaigns, which drained the treasury that Avantivarman and Suyya had worked so hard to fill. To fund his wars, Sankaravarman resorted to extreme measures that crushed the common people.
Sankaravarman also imposed heavy, oppressive taxes on everything from agriculture to temple properties. When he died, the Utpala dynasty went into a steep decline. A series of child kings and weak rulers followed, turning the royal court into a den of conspiracies.
During this vacuum of power, two military factions rose to prominence:
- The Tantrins: A powerful organization of foot soldiers and royal bodyguards.
- The Ekangas: The royal military police.
The Tantrins, in particular, became the ultimate "kingmakers." They would literally auction the throne to whichever royal claimant promised them the highest bribes, plunging Kashmir back into the dark days of civil war and instability.
Queen Didda: The Iron Lady of Kashmir
Out of this chaos emerged one of the most fascinating, complex, and powerful figures in Indian history: Queen Didda. Often called the "Catherine the Great of Kashmir," she would dominate the politics of the valley for nearly half a century.
Didda was not originally from the Kashmir valley. She was the daughter of Simharaja, the king of Lohara (a kingdom located in the Pir Panjal mountain range, on the trade route between Punjab and Kashmir). On her mother's side, she was the granddaughter of the powerful Hindu Shahi kings of Kabul.
Around 950 CE, she was married to the King of Kashmir, Kshemagupta. Didda was highly intelligent, fiercely ambitious, and possessed a dominant personality. She quickly took complete control over her husband and the administration. Kshemagupta was so infatuated with her—and so entirely under her thumb—that he actually minted coins bearing both of their names: "Di-Kshema". In a deeply patriarchal era, this was a stunning public admission of her power.
The Regency Period (958–980 CE)
When Kshemagupta died in 958 CE, Didda did not step aside. Her son, Abhimanyu, was just a child, so she assumed power as his Regent.
Her time as Regent was a masterclass in ruthless political survival. The rebellious nobles, the arrogant Tantrins, and the powerful rural landlords thought they could easily overthrow a female regent. They were dead wrong.
When the nobles and Damaras rebelled, Didda used a brilliant mix of diplomacy, bribery, and sheer military force. If a faction was too strong to fight, she bought them off with gold. Once they were divided, she sent her loyal forces to crush them without mercy. She exterminated the treacherous ministers who had plagued the kingdom for decades.
Tragically, her son Abhimanyu died young. Didda then placed her young grandsons on the throne one by one (Nandigupta, Tribhuvanagupta, and Bhimagupta), continuing to rule as Regent behind them. Kalhana, the great historian of Kashmir, suggests in his Rajatarangini that Didda herself may have had a hand in the deaths of her grandsons when they grew old enough to challenge her authority.
The Sole Monarch (980–1003 CE)
Finally, in 980 CE, Didda did away with the pretense of being a Regent. She deposed her last grandson and formally crowned herself the absolute, sole Monarch of Kashmir.
Despite her ruthless methods and the controversies surrounding her personal life, Didda provided Kashmir with something it desperately needed: a strong, stable, and unified government. She built numerous temples, monasteries, and towns, and she kept the borders secure. She ruled with an iron fist until her natural death in 1003 CE.
The Lohara Dynasty and the Ghaznavid Threat
Because Didda had eliminated most of her direct descendants, she needed an heir. Before her death, she adopted her nephew, Sangramaraja, a prince from her native kingdom of Lohara.
When Didda died in 1003 CE, the throne passed peacefully to Sangramaraja. This marked the end of the Utpala dynasty and the beginning of the Lohara Dynasty.
Sangramaraja’s reign (1003–1028 CE) is historically massive for one specific reason: he was the king who stood between Kashmir and the terrifying invasions of Mahmud of Ghazni.
In the early 11th century, Mahmud of Ghazni was sweeping across northern India, destroying kingdoms and looting immense wealth. He had already defeated the Hindu Shahi kingdom (the ancestors of Queen Didda). Sangramaraja had actually sent a Kashmiri army to help the Hindu Shahis fight Mahmud, which deeply angered the Ghaznavid conqueror.
Seeking revenge, Mahmud of Ghazni marched his massive, battle-hardened army toward the Kashmir valley. He attempted to invade Kashmir twice: first in 1015 CE, and again in 1021 CE.
Both times, Mahmud tried to enter the valley through the Tosamaidan pass. And both times, his advance was completely halted by the impregnable Kashmiri hill-fort of Loharkot.
The Kashmiri forces inside Loharkot held their ground brilliantly. Furthermore, the geography of Kashmir came to their rescue. Heavy snowfall and the brutal Kashmiri winter decimated Mahmud's troops, cutting off their supply lines. Defeated by the fort and the weather, Mahmud of Ghazni was forced to abandon the siege and retreat, losing many men along the way and nearly losing his own life.
The Twilight of Hindu Rule in Kashmir
After Sangramaraja, the Lohara dynasty slowly began to rot from the inside out. The later centuries of Hindu rule in Kashmir were marked by weak kings, empty treasuries, and endless civil wars.
Two later Lohara kings are particularly notable for understanding how the era ended:
1. King Harsha (1089–1101 CE) Harsha is one of the most bizarre and tragic figures in Kashmiri history. He was highly educated, a lover of music and arts, and introduced elegant new fashions to the court. However, he was also a megalomaniac who completely bankrupted the state with his lavish lifestyle and failed military adventures.
To refill his empty treasury, Harsha resorted to unthinkable measures. He appointed special officers whose sole job was to loot and desecrate temples. He melted down ancient, sacred gold and silver idols of Hindu and Buddhist deities just to mint coins. Because of his madness and cruelty, historians often refer to him as the "Nero of Kashmir." His reign ended in a massive rebellion where his palace was burned down, and he was hunted and killed.
2. King Jayasimha (1128–1155 CE) Jayasimha is often considered the last great Hindu ruler of Kashmir. He managed to restore some order and rebuild the state, ruling for nearly three decades.
His reign is most famous because it was during this time (around 1149–1150 CE) that the great Kashmiri scholar Kalhana wrote the *Rajatarangini* (The River of Kings). This monumental Sanskrit text is the primary historical source for everything we know about ancient Kashmir, including the stories of Avantivarman, Suyya, and Didda.
The Final Collapse
After Jayasimha, the central authority in Srinagar practically vanished. The Damaras (feudal warlords) ran wild, turning the valley into a patchwork of warring fiefdoms. Agriculture collapsed, trade stopped, and the common people were left defenseless.
By the early 14th century, the Hindu kingdom was a hollow shell. When a devastating Mongol invasion led by a warlord named Dulacha swept into the valley, the last Hindu kings proved entirely incapable of defending the land. This total collapse of the old order paved the way for a Tibetan prince named Rinchan, and later a Muslim adventurer named Shah Mir, to step into the power vacuum—ending millennia of Hindu rule and beginning the era of the Shah Mir Sultanate, which we will explore in the next chapter.
Quick Revision
- Utpala Dynasty Founder: Avantivarman (855 CE). He ended the Karkota civil wars and focused on peace and consolidation.
- Avantivarman's Architecture: Founded Avantipur (Awantipora) and built the Avantiswami (Vishnu) and Avantisvara (Shiva) temples.
- Suyya's Engineering: Avantivarman's minister who solved the Jhelum floods by throwing coins into the choked Baramulla gorge, prompting villagers to clear the boulders. He founded Suyyapur (Sopore).
- Sankaravarman: Avantivarman's successor who ruined the economy with wars and heavy use of begar (forced labor).
- Queen Didda: The "Iron Lady" of Kashmir. Daughter of the King of Lohara. Married Kshemagupta ("Di-Kshema").
- Didda's Rule: Ruled as Regent for her son and grandsons (958–980 CE), then crowned herself Sole Monarch (980–1003 CE). Ruthlessly crushed the Tantrins and Damaras.
- Lohara Dynasty: Founded in 1003 CE by Sangramaraja, Didda's nephew.
- Defeating Ghazni: Sangramaraja successfully defended Kashmir against Mahmud of Ghazni's invasions (1015 and 1021 CE) at the Loharkot fort, aided by harsh winter weather.
- King Harsha: The "Nero of Kashmir" who bankrupted the state and melted down temple idols for gold.
- King Jayasimha: The last strong Hindu king, during whose reign Kalhana wrote the Rajatarangini.
Related notes
- Sources of Jammu and Kashmir History
Learn how we know about the region's past through ancient texts and archaeological sites.
- Early Rulers and the Karkota Dynasty
Understand the early Hindu and Buddhist kings, focusing on the powerful Karkota empire.
- Mughal Rule in Kashmir
See how the Mughal emperors integrated Kashmir into their empire and shaped its culture.
- The Shah Mir Dynasty
Learn about the establishment of Muslim rule and the golden era of Zain-ul-Abidin.