In 990, Dharmawangsa launched a naval invasion against Srivijaya[REF] in an attempt to capture Palembang.
After 16 years of war, in 1006, Srivijaya managed to repelled the Medang invaders and liberated Palembang.