In the 10th century, the Khmer Empire developed into a regional power centre of Southeast Asia: the wealth of the Khmer enabled them to build large cities and massive temple complexes.
Each king had the temple complexes at Angkor restored and new ones built.
The main temple, Angkor Wat, built by King Suryavarman I, was dedicated to Vishnu. The original name was probably Vishnuloka, while the name Angkor Wat only came into being centuries later, when the temple complex was converted into a Buddhist sanctuary.