CE Chenla had divided into “Land Chenla” located in Laos, and “Water Chenla” founded by Mahendravarman near Sambor Prei Kuk in Cambodia. Land Chenla was known to the Chinese as “Po Lou” or “Wen Dan” and dispatched a trade mission to the Tang Dynasty court in 717 CE. Water Chenla, would come under repeated attack from Champa, the Medang sea kingdoms in Indonesia based in Java, and finally pirates. From the instability the Khmer emerged, and under the king Jayavarman II theKhmer Empire began to take shape in the 9th century CE.