Srivijaya forces assist Haji (king) Wurawari of…
1006 CE
Srivijaya forces assist Haji (king) Wurawari of Lwaram to revolt against the Medang kingdom in retaliation for the attack on the capital, and attack and destroy the royal palace, killing Dharmawangsa and most of the royal family.
With the death of Dharmawangsa and the fall of the capital, the kingdom finally collapses under military pressure from Srivijaya.
There will be further unrest and violence for several years after the kingdom's demise.