Angkor was built in the first half of the 12 th century . king suryavarman II built Angkor was . It is generally accepted that Angkor wat was a funerary temple for king suryavarman II and oriented to the west to conform to the symbolism between the setting sun and death .