Harivarman II

Harivarman II, was king of Champa from 988 to 997.

Between 983 and 988, the throne of the leading power of mandala Champa, the Principality of Indrapura, had been interrupted by Lưu Kế Tông (r. 986–989), a Vietnamese usurper who took advantage of unrest in Champa after Champa–Dai Viet War of 982. Lưu Kế Tông was a tyrant king and under his rule many people fled the country to Hainan Island and Guangzhou, as the Chinese dynastic records say. In 988, the Cham nobility elected a prince that supposedly would become king. As Lưu Kế Tông died in the next year, the prince was crowned as Harivarman II in Indrapura (Fóshì).

Harivarman sent a diplomatic delegation commissioned by Lǐ Zhēn (Ali Zain?) and Pú Hēsǎn (Abu Hassan?) to the court of the Song dynasty in December 990, informing them about Champa's new ruler along with tribute gifts.

In 991, Harivarman rebuilt the temple of Īśānabhadreśvara at My Son, which previously might have been vandalized by the usurper. In 992 he obtained the release of 360 Cham war prisoners from Song China who were sold to slavery by the Viet after the 982 war. Maspero said that in 995 and 997 king Le Hoan of the Dai Viet complained with the Song court about Cham raids in his territories of Hoan and Ai (Thanh Hoa and Nghe An) while he was attacking Champa in 990 and 997. During that period from late 10th-early 11th century AD, most of the textual evidence in Champa was either destroyed and damaged due to constant wars and chronic depressions, resulting in lack of inscriptions, several major gaps of chronology (965–991, 991–1008, 1013–1050) and making Cham history of this period simply faded in obscurity.

Harivarman II died in 997 and was succeeded by a dubious ruler, only known as Yang Pu Ku Vijaya Çri.