 According to tradition the calamity, dubbed as "Pralaya" (the death) of Medang, took place during Airlangga's wedding ceremony in Dharmawangsa palace.Today historians strongly suggested that the invasion was actually a Srivijayan retaliation against Medang for the attacks upon the empire.After the failed Dharmawangsa's naval campaign against Palembang back in 990, Sri Culamanivarmadeva the Maharaja of Srivijaya saw Javanese Medang as a dangerous threat, thus arranged a stratagem to destroy Medang by inciting a revolt.