The Angkorian period may have begun shortly after 800 AD, when the Khmer King Jayavarman II announced the independence of Kambujadesa (Cambodia) from Java. According to Sdok Kok Thom inscription, circa 781 Indrapura was the first capital of Jayavarman II, located in Banteay Prei Nokor, near today's Kompong Cham. After he eventually returned to his home, the former kingdom of Chenla, he quickly built up his influence, conquered a series of competing kings, and in 790 became king of a kingdom called Kambuja by the Khmer. He then moved his court northwest to Mahendraparvata, in present day Kulen mountains, far inland north from the great lake of Tonle Sap. He also established the city of Hariharalaya (now known as Roluos) at the northern end of Tonlé Sap. Through a program of military campaigns, alliances, marriages and land grants, he achieved a unification of the country bordered by China to the north, Champa (now Central Vietnam) to the east, the ocean to the south and a place identified by a stone inscription as "the land of cardamoms and mangoes" to the west. In 802, Jayavarman articulated his new status by declaring himself "universal monarch" ("chakravartin") and, in a move that was to be imitated by his successors and that linked him to the cult of Siva, taking on the epithet of "god-king" ("devaraja"). Before Jayavarman, Cambodia had consisted of a number of politically independent principalities collectively known to the Chinese by the names Funan and Chenla.