Jayavarman II (; c. 770 – 850) (reigned c. 802–850) was a Khmer prince who founded and became the ruler of the Khmer Empire (Cambodia) after unifying the Khmer civilization. The Khmer Empire was the dominant civilization in mainland Southeast Asia from the 9th century until the mid-15th century. Jayavarman II was a powerful Khmer king who declared independence from a polity inscriptions named "Java". Jayavarman II founded many capitals such as Mahendraparvata, Indrapura, Amarendrapura, and Hariharalaya. Before Jayavarman II came to power, there was much fighting among local overlords who ruled different parts of Cambodia. No inscriptions by Jayavarman II have been found. Future kings of the Khmer Empire described him as a warrior and the most powerful king from that time frame that they could recall. Historians formerly dated his reign as running from 802 AD to 835 AD.

Universal monarch

Mahipativarman, the king of Water Chenla, expressed his desire before his courtiers, to see the chopped head of the king of Zabag which is identified with Java. This information was known to Sanjaya, the king of Java. So Sanjaya conquered the Water Chenla and beheaded Mahipativarman. And then, Sanjaya installed a new king, Jayavarman II, on the throne as his vassal. Jayavarman first remained subordinate to Java for some time and thereafter declared independence.

Jayavarman II

Jayavarman II became king in Indrapura by 781, and he married Jayendrabhā, queen regnant of Sambhupura Chenla, in order to unite Cambodia under one king.

Jayavarman II

Jayavarman II is widely regarded as the king that set the foundation of the Angkor period in Cambodian history, beginning with the grandiose consecration ritual he conducted in 802 on Mount Mahendraparvata, now known as Phnom Kulen. At that ceremony, he was proclaimed a universal monarch (Kamraten jagad ta Raja in Khmer) or God King (ទេវរាជ in Khmer,Deva Raja in Sanskrit). An inscription from the Sdok Kak Thom temple recounts that at Mahendraparvata, Jayavarman II took part in a ritual performed by the Brahman Hiranyadama, and his chief priest Lord Sivakaivalya, a devaraja () which placed him as a chakravartin, Lord of the Universe.

Jayavarman II

Taken in sum, the record suggests that Jayavarman and his followers moved over the course of some years from southeast Cambodia to the northwest, subduing various principalities along the way. Jayavarman II founded Hariharalaya near present-day Roluos, the first settlement in what would later become the Khmer Empire. Historian Claude Jacques writes that he first seized the city of Vyadhapura in the southeast, then pushed up the Mekong River to take Sambhupura. He later installed himself at another city state, now known as Banteay Prei Nokor, near present-day Kompong Cham. Jacques believes that from there he pressed on to Wat Pu, seat of a city-state in present-day southern Laos, then moved along the Dangrek Mountains to arrive in the Angkor region. Later he brought pressure on local Khmer leaders located to the west, but they fought back and drove him to the summit of present-day Phnom Kulen, about 50 kilometers east of Angkor, where the Brahman declared independence. Jacques suggests that this step might have been intended to affirm Jayavarman's authority in the face of strong resistance.

Once established in the Angkor region, Jayavarman II appears to have reigned not only in Hariharalaya, located just north of the Tonle Sap lake, but also at a place that inscriptions call Amarendrapura. It has not been positively identified, though some historians believe it to be a now lost settlement at the western end of the West Baray, the eight kilometer-long holy reservoir that was built about two centuries after his death. No single temple is positively associated with Jayavarman, but some historians suggest he may have built Ak Yum, a brick stepped pyramid, now largely ruined, at the southern edge of the West Baray. The temple was a forerunner to the mountain-temple architectural form of later Khmer kings.

Despite his key role in Khmer history, few firm facts survive about Jayavarman. No inscriptions authored by him have been found, but he is mentioned in numerous others, some of them written long after his death. He appears to have been of aristocratic birth, beginning his career of conquest in the southeast of present-day Cambodia. He may have been known as Jayavarman Ibis at that time. “For the prosperity of the people in this perfectly pure royal race, great lotus which no longer has a stalk, he rose like a new flower,” declares one inscription. Various other details are recounted in inscriptions: he married a woman named Hyang Amrita; and he dedicated a foundation at Lobok Srot, in the southeast.