The temples themselves collapsed during a major earthquake in the 16th century. Although the temple ceased to be an important center of worship, the ruins scattered around the area were still recognizable and known to the local Javanese people in later times. The statues and the ruins become the theme and the inspiration for the Loro Jonggrang folktale. After the division of Mataram Sultanate in 1755, the temple ruins and the Opak River were used to demarcate the boundary between Yogyakarta and Surakarta (Solo) Sultanates, which became the current border between Yogyakarta and the province of Central Java.