Taman Sari is located approximately 2 km south from The Palace of Yogyakarta. The site used to be a royal garden of the Sultanate of Yogyakarta and was built during the 18th century. The royal garden was used for a variety of functions including a defence area, meditation and for resting.