 In 1647, shortly after taking the throne, Amagkurat built his royal residence near the lake and moved the court there.In contrast to Karta, which was made of wood, the royal compound at Plered was built of brick.Amangkurat continued to expand this complex up to 1666.