About 550 the northern line of Chenla absorbed Funan, seating itself at Isanapura; under Isanavarman I in the 7th century it enters the Sui and Tang histories (the Sui annals first write the name 'Zhenla'), embassies to the Tang unbroken, the state faith Shaiva Hinduism, Sanskrit and Khmer script in use together. In the early 8th century it split into Water Chenla (the coast) and Land Chenla (the interior), the two contending amid Javanese Shailendra raids - about 787 Water Chenla for a time bowed to Java. In 802 Jayavarman II, enthroned on Mahendraparvata as chakravartin, threw off the Javanese suzerainty and founded the Khmer (Angkor) Empire; the Chenla age closed, though Chinese histories kept the name for the Khmer realm after.