Suryavarman II built Angkor Wat in Yasodharapura (present-day Angkor), the capital of the Khmer Empire, as his state temple and mausoleum in the early 12th century.