The king of Champa, Paramesvaravarman I, previously had attacked Dai Viet in late 979 in the name of restoring Ngô Nhật Khánh, a Vietnamese dissent, but was stopped by a typhoon. In the next year Le Hoan sent an embassy to Champa, however was detained by Cham king. The Viet king then led a army stormed south, killed Paramesvaravarman in battle and sacked Indrapura. Paramesvaravarman’s Prince Jaya Indravarman IV seeked refuge in the south. In the next year, Lưu Kế Tông, an Vietnamese officer in the Cham army, had seized power in Champa and successfully resisted a Le Hoan’s attempt to remove him from power.