Jayavarman II (born c. 770—died 850, Hariharalaya, Cambodia) was the founder of the Khmer, or Cambodian, empire and an outstanding member of the series of rulers of the Angkor period (802–1431). Among Jayavarman II’s accomplishments were the deification of the Cambodian monarchy, the establishment of the devarāja cult as the official state religion, and the reunification of the old kingdom of Chenla, which he expanded and formed into the Khmer empire.
Possibly of Khmer descent, Jayavarman II came from Java, where he had been in captivity or exile, to succeed to the throne as Java’s vassal around 800. An unwilling puppet, he defied the Javanese and asserted Khmer independence in 802, when he also was installed under Hindu rites as devarāja, or god-king. He established a series of capitals, first at Indrapura, on the lower Mekong River east of Kâmpóng (Kompong) Cham; then, moving northwards, at Hariharalaya, southeast of present-day Siĕmréab (Siem Reap); and then at Mahendraparvata, in the region just north of the Tonle Sap (Great Lake), not far from Angkor, the next seat of the Khmer empire, which remained its capital for 600 years.