The compound of the Royal Palace is likely to be occupied under the reigns of Suriyavarman I (1002-1010) and Jayavarman VII (1181-c.1220). The residences of the king and those who worked for him were made of wood, which has disintegrated; therefore, only the stone substructure of the Royal Palace remains. The Royal Palace area is delimited by the Terrace of the Leper King and the Terrace of Elephants. Steps from the two terraces lead to the Royal Plaza, which was used by Jayavarman VII for processions, festivals, and ceremonies. Inside the enclosure behind the terraces is the temple of Phimeanakas and the Royal Baths. The two ponds that lie north of Phimeanakas were once part of the royal compound. The smaller pond is known as Srah Srei or the women's bath, and has moulding and laterite steps. The larger pond, the men's bath, is paved in laterite with sandstone steps. It has sculpted borders in high relief of nagas, garudas and other mythical creatures.