The temple was built in the 11th century of laterite and bricks with carved sandstone lintels by the Khmer Empire king Suryavarman I,:: who practiced Brahmanism. It was dedicated to the Hindu divinities Shiva and Vishnu. The original name of the temple was Sri Suryaparvata (), or The Mountain of Surya[varman] (The mountain of the Sun).