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.
Angkor Wat
The outer wall encloses a space of 820,000 square metres (203 acres), which besides the temple proper was originally occupied by the city and, to the north of the temple, the royal palace. Like all secular buildings of Angkor, these were built of perishable materials rather than of stone, so nothing remains of them except the outlines of some of the streets. Most of the area is now covered by forest. A causeway connects the western gopura to the temple proper, with naga balustrades and six sets of steps leading down to the city on either side. Each side also features a library with entrances at each cardinal point, in front of the third set of stairs from the entrance, and a pond between the library and the temple itself. The ponds are later additions to the design, as is the cruciform terrace guarded by lions connecting the causeway to the central structure.