Champa–Đại Cồ Việt War
Central Vietnam, VietnamIn October 979, Emperor Đinh Bộ Lĩnh and Prince Đinh Liễn of Dai Co Viet were killed by a eunuch named Đỗ Thích while they were sleeping in the courtyard of the palace. Their deaths resulted in a state of unrest throughout Dai Viet. After hearing the news, Ngô Nhật Khánh, who was still living out his exile in Champa, encouraged the Cham king Jaya Paramesvaravarman I to invade Đại Việt. The naval invasion was halted due to a typhoon.[127] In the following years, the new Vietnamese ruler, Lê Hoàn, sent emissaries to Champa to announce his accession to the throne.[128] However, Jaya Paramesvaravarman I detained them. As no peaceful reconciliation avail, Lê Hoàn used this action as a pretext for a retaliatory expedition to Champa.[129] This marked the beginning of a southward Vietnamese advance against Champa. [130]
In 982, Lê Hoàn commanded the army and stormed the Cham capital of Indrapura (modern-day Quảng Nam). Jaya Paramesvaravarman I was killed while the invading force sacked Indrapura. In 983, after the war had devastated northern Champa, Lưu Kế Tông, a Vietnamese military officer, took advantage of the disruptions and seized power in Indrapura.[131] In the same year, he successfully resisted Lê Hoàn's attempt to remove him from power.[132] In 986, Indravarman IV died and Lưu Kế Tông proclaimed himself King of Champa.[128] Following the usurpation of Lưu Kế Tông, many Chams and Muslims fled to Song China, particularly the Hainan and Guangzhou regions, to seek refuge.[131] Following the death of Lưu Kế Tông in 989, the native Cham king Jaya Harivarman II was crowned.