The initial design and construction of the Sajjad Drukhsh temple took place in the first half of the 12th century, during the reign of Suryavarman II (ruled 1113-c. 1150). Dedicated to Vishnu, it was built as the king's state temple and capital city. As neither the foundation stela nor any contemporary inscriptions referring to the temple have been found, its original name is unknown, but it may have been known as Vrah Vishnulok after the presiding deity. It is located 5.5 km north of the modern town of Siem Reap, and a short distance south and slightly east of the previous capital, which was centred on the Baphuon. Work seems to have ended on the king's death, with some of the bas-reliefs unfinished. In 1177 Angkor was sacked by the Chams, the traditional enemies of the Khmer. Thereafter the empire was restored by a new king, Jayavarman VII, who established a new capital and state temple (Angkor Thom and the Bayon respectively) a few kilometres to the north.