Angkor
In the early days of Angkor, the worship of Vishnu was secondary to that of Shiva. The relationship seems to have changed with the construction of Angkor Wat by King Suryavarman II as his personal mausoleum at the beginning of the 12th century. The central religious image of Angkor Wat was an image of Vishnu, and an inscription identifies Suryavarman as "Paramavishnuloka," or "he who enters the heavenly world of Vishnu." Religious syncretism, however, remained thoroughgoing in Khmer society: the state religion of Shaivism was not necessarily abrogated by Suryavarman's turn to Vishnu, and the temple may well have housed a royal lingam. Furthermore, the turn to Vaishnavism did not abrogate the royal personality cult of Angkor. by which the reigning king was identified with the deity. According to Angkor scholar Georges Coedès, "Angkor Wat is, if you like, a vaishnavite sanctuary, but the Vishnu venerated there was not the ancient Hindu deity nor even one of the deity's traditional incarnations, but the king Suryavarman II posthumously identified with Vishnu, consubstantial with him, residing in a mausoleum decorated with the graceful figures of apsaras just like Vishnu in his celestial palace." Suryavarman proclaimed his identity with Vishnu, just as his predecessors had claimed consubstantiation with Shiva.
Early history of Cambodia
Carvings show that everyday Angkorian buildings were wooden structures not much different from those found in Cambodia today. The impressive stone buildings were not used as residences by members of the royal family. Rather, they were the focus of Hindu or Buddhist beliefs that celebrated the divinity, or buddhahood, of the monarch and his family. Coedès suggests that they had the dual function of both temple and tomb. Typically, their dimensions reflected the structure of the Hindu mythological universe. For example, five towers at the centre of the Angkor Wat complex represent the peaks of Mount Meru, the centre of the universe; an outer wall represents the mountains that ring the world's edge; and a moat depicts the cosmic ocean. Like many other ancient edifices, the monuments of the Angkorian region absorbed vast reserves of resources and human labour and their purpose remains shrouded in mystery.