# Destruction of the Medang Court (1016 (some sources 1006))

URL: https://allhistories.com/indonesia/timeline/1016-destruction-of-the-medang-court
Location: Watugaluh (Wwatan), East Java
Themes: Court massacre, Medang, Disputed date

In 1016, according to one account, the vassal Haji Wurawari of Lwaram attacked the palace during a wedding ceremony and killed the king and much of the royal family. A later inscription of 1041 calls the disaster a pralaya, meaning cosmic dissolution. Other accounts place the attack in 1006. Traditional narratives blame a local rebellion. Many historians instead suspect Srivijayan retaliation for the failed Javanese naval attack on Palembang in 990, with Wurawari acting as an ally. The young prince Airlangga, who was to marry into the family, escaped the massacre and lived in the forests of Vanagiri as a hermit. The collapse ended the first East Javanese kingdom and left a political vacuum for about three years. Airlangga eventually rebuilt the realm as Kahuripan, using the memory of the pralaya to legitimise his rule. The disputed date, 1006 or 1016, illustrates how Javanese chronology of this era depends on a small number of inscriptions and later chronicles. At this point in the timeline (1016), the ruler of the Medang (Mataram) kingdom was Dharmawangsa Teguh, king of Medang (990 – 1016 CE). Meanwhile, the ruler of Srivijaya was Sri Maravijayottunggavarman, maharaja of Srivijaya (1008 – 1017).

## Why it matters
It shows how fragile Javanese kingship was, and it created the opening through which Airlangga rebuilt East Java.

Ruler at the Time: [Dharmawangsa Teguh](https://allhistories.com/indonesia/rulers/dharmawangsa-teguh)

## Sources
- [Wikipedia — Medang Kingdom](https://en.wikipedia.org/wiki/Medang_Kingdom)
- [Wikipedia — Airlangga](https://en.wikipedia.org/wiki/Airlangga)

