king of the Nagas, married Kaundinya and their lineage became the royal dynasty of Funan. The myth had the advantage of providing the legitimacy of both an Indian Brahmin and the divinity of the cobras, who at that time were held in religious regard by the inhabitants of the region. The kingdom of Champa (or Lin-yi in Chinese records) controlled what is now south and central Vietnam from approximately 192 through 1697. The dominant religion of the Cham people was Hinduism and the culture was heavily influenced by India. Later, from the 9th to the 13th century, the Mahayana Buddhist and Hindu Khmer Empire dominated much of the South-East Asian peninsula. Under the Khmer, more than 900 temples were built in Cambodia and in neighboring Thailand. Angkor was at the centre of this development, with a temple complex and urban organisation able to support around one million urban dwellers. The largest temple complex of the world, Angkor Wat, stands here; built by the king Vishnuvardhan. Late-Classical Hinduism – Puranic Hinduism (c. 650–1200 CE) After the end of the Gupta Empire and the collapse of the Harsha Empire, power became decentralised in India. Several larger kingdoms emerged, with "countless vasal states". The kingdoms were ruled via a feudal system. Smaller kingdoms were dependent on the protection of the larger kingdoms. "The great king was remote, was exalted and deified", as reflected in the Tantric Mandala, which could also depict the king as the centre of the mandala. The disintegration of central power also lead to regionalisation of religiosity, and religious rivalry. Local cults and languages were enhanced, and the influence of "Brahmanic ritualistic Hinduism" was diminished. Rural and devotional movements arose, along with Shaivism, Vaisnavism, Bhakti and Tantra, though "sectarian groupings were only at the beginning of their development". Religious movements had to compete for recognition by the local lords. Buddhism lost its position after the 8th century, and began to disappear in India. This was reflected in the change of puja-ceremonies at the courts in the 8th century, where Hindu gods replaced the Buddha as the "supreme, imperial deity". Puranic Hinduism The Brahmanism of the Dharmaśāstra and the smritis underwent a radical transformation at the hands of the Purana composers, resulting in the rise of Puranic Hinduism, "which like a colossus striding across the religious firmanent soon came to overshadow all existing religions". Puranic Hinduism was a "multiplex belief-system which