The rock outcrop and caves in and around Dambulla were first occupied in prehistoric times. They were converted to Buddhist worship in the first century BC. King Nissankamalla further developed the caves in the 12th century, but the statues and paintings, that can be seen today, date mostly from the Kandyan period (17th - 18th centuries). They have been subjected to continuous renewal and overpainting since then.