Taman Sari was built three years after the Giyanti Agreement as a resting place for Sultan Hamengkubuwono I. The complex consists of about 59 buildings including a mosque, meditation chambers, swimming pools, and a series of 18 water gardens and pavilions surrounded by artificial lakes.