Jayavarman VII
The Khmer Empire lasted from 802 to 1431, initially under Hindu religious beliefs up to the end of the 12th century and later under Buddhist religious practices. It was a time when temples of grandeur came to be built and reached a crescendo during the reign of Suryavarman II until 1145/1150, and later in the 12th–13th centuries, under Jayavarman VII. Many Buddhist temples were built, including the Banteay Kdei, from middle of the 12th century to early 13th century. Though Jayavarman VII was credited with building many temples, he was also accused of squandering money on extravagant temple building projects at the expense of society and other duties. He built Buddhist temples in which Bodhisattva Avalokitesvara was the main deity. This temple built, conforming to the style of the Ta Prohm and Preah Khan temples in the vicinity during the same period by Jayavarman VII, but of a smaller size, was built as a Buddhist monastic complex on the site of a 10th-century temple built by Rajendravarman. Some small inscriptions attest to the building of this temple by Jayavarman VII and the royal architect, Kavindrarimathana.