A king stands in his chariot outside the gates of Anuradhapura, beaten in battle and running for his life. As he passes a hermitage, a man named Giri jeers at him. Behind the king, one of his queens climbs down from the chariot so that it can go faster. The king will not see his capital again for fourteen years. Where did he go? In the town of Dambulla, people will tell you the answer is a great granite rock in the middle of the island, with five caves under its brow.
That is where the history of the Dambulla cave temple begins, at least in the telling. For the visitor's side of things, opening hours, the climb and what to wear, read our complete guide to Dambulla Cave Temple. This piece is the story.
✨ Key takeaways
- The short answer: Dambulla is a living Buddhist cave temple in central Sri Lanka, used by monks since the 3rd century BCE according to UNESCO.
- The legend: local tradition says King Valagamba (Vattagamani Abhaya) hid here during fourteen years of exile and later turned the caves into a temple.
- The chronicle: the Mahavamsa tells his exile in detail but does not name Dambulla.
- The gold: King Nissanka Malla of Polonnaruwa gilded the caves in the 12th century, which gave the rock its other name, Rangiri, the golden rock.
- The paintings: UNESCO counts 2,100 m² of murals and 157 statues, most in their 18th-century Kandyan form.
Quick list
- Cave 1, Devaraja Lena, Dambulla: the rock-cut reclining Buddha, about 14 metres long.
- Cave 2, Maharaja Lena, Dambulla: the biggest cave, with statues of two kings and the dripping water pot.
- Cave 3, Maha Alut Vihara, Dambulla: the "great new temple" of the Kandyan king Kirti Sri Rajasinha.
- Cave 4, Pachima Vihara, Dambulla: a smaller shrine with seated Buddhas.
- Cave 5, Devana Alut Vihara, Dambulla: the most recent of the five.
Last checked: November 2026. How we chose our sources: we read UNESCO's World Heritage listing, Wilhelm Geiger's English translation of the Mahavamsa and published guides to the caves this month. Where the chronicle and local tradition disagree, we say so.
What is the story of the Dambulla cave temple?
The Dambulla cave temple is a complex of five Buddhist cave shrines under a granite outcrop near Dambulla town in central Sri Lanka. UNESCO, which listed it as a World Heritage Site in 1991, calls it a sacred pilgrimage site for 22 centuries and the largest, best-preserved cave-temple complex in Sri Lanka. Its story is told through one king's exile.
That king is Vattagamani Abhaya, better known in Sri Lanka as Valagamba or Valagambahu. Sri Lankan tradition and most reference works place his reign in the first century BCE. To understand why a cave temple is tied to his name, you have to go back to the year everything fell apart for him.
A crown won, then lost in five months
According to the Mahavamsa, the great Pali chronicle of the island, Vattagamani came to the throne after killing a commander who had overthrown his brother, King Khallata Naga. He took his brother's young son as his own and made the boy's mother, Anuladevi, his queen. For a moment, the kingdom seemed safe.
It lasted five months. In Rohana, in the south, a young brahman named Tissa rose in rebellion. At the same time, the chronicle says, seven Tamil chiefs landed with their troops at Mahatittha, the old port near Mannar. The king, clever in a corner, wrote to the rebel: the kingdom is yours if you can beat the invaders. Tissa tried and lost. Then the invaders turned on the king.
"The great black lion is fleeing"
Vattagamani was beaten in a battle near a place the Mahavamsa calls Kolambalaka. He fled in his chariot past the gate of the Tittharama. A Jain ascetic named Giri saw him go and shouted, in Geiger's translation, "The great black lion is fleeing." The king, the chronicle says, made a silent vow: if his wish came true, he would build a monastery on that very spot.
He had taken his family with him. To lighten the chariot, his second queen, Somadevi, stepped down of her own will, and he gave her his jewelled diadem. One of the invaders later carried her off across the sea. Another took the Buddha's alms bowl from Anuradhapura. Five Tamil rulers then held the city in turn, by the chronicle's reckoning, for fourteen years and seven months.
Fourteen years in the hills
The Mahavamsa follows the king into hiding: first the Vessagiri forest, where a monk named Mahatissa gave him food; then a place called Silasobbhakandaka; then Matuvelanga near Samagalla, where the same monk handed him into the care of a man named Tanasiva. In Tanasiva's house, in the hill region the chronicle calls Malaya, the king lived for fourteen years.
It did not end gently. After a quarrel between the two households, the king shot Tanasiva with an arrow, declared who he was and began to gather an army. With eight warrior ministers and the support of two monks, he marched on Anuradhapura, killed the last of the five rulers and took back his throne.
The vow kept
Then he kept his word. On the site of Giri's hermitage he built the Abhayagiri monastery, whose name, the chronicle says, joins his own name, Abhaya, with Giri's. He brought Somadevi home and built the Somarama in her honour. The Mahavamsa also records that in his reign monks first wrote down the Buddhist scriptures, which until then had been passed on by memory.
And Dambulla? Here the story changes voice. Local tradition, repeated at the temple and in most guidebooks, holds that the caves under the Dambulla rock were among the king's refuges, and that once he was king again he turned them into a temple in thanks to the monks who had sheltered him. Inside Cave 2 a painted wooden statue said to show Valagamba still stands near the door.
Legend or history? What the evidence says
The honest answer is that Dambulla's link to Valagamba rests on tradition, while the age of the caves rests on evidence. The Mahavamsa, the main written source for his reign, names several places where he hid but does not mention Dambulla. That does not disprove the tradition; it means the chronicle is silent on it.
- What archaeology and UNESCO say: UNESCO's listing says forest monks lived in these caves from the 3rd century BCE, which is earlier than Valagamba. A Dutch summary of the UNESCO file adds that a megalithic burial site at nearby Ibbankatuwa shows people lived in the area in prehistoric times.
- What the inscriptions say: early Brahmi inscriptions carved at the cave mouths record gifts of caves to monks, a common practice in early Sri Lanka. Reference works describe one over Cave 1 as recording the founding of the monastery.
- What the chronicle says: the Mahavamsa gives a detailed, named account of Valagamba's exile and return, but places it in the forest, at Samagalla and in the house of Tanasiva.
- What tradition says: the temple's own story, and the statue in Cave 2, tie the king to Dambulla as its royal founder.
Later history is on firmer ground. A stone inscription near the entrance, left by King Nissanka Malla of Polonnaruwa, records his visit and the gifts he made. Reference works date his work to about 1190, saying he gilded the caves and added around 70 statues; the gold gave the site its Sinhala name Rangiri, golden rock. In the 18th century the Kandyan king Kirti Sri Rajasinha restored the caves and, according to an art historical study published by ThePrint, brought Cave 3 to its present form in the early 1780s.
💡 Local tip
Find Nissanka Malla's inscription on the rock to the right as you pass the entrance gate, before the first cave. It is the one piece of written history you can touch on the walk in.
What can you still see at Dambulla today?
At Dambulla today you can walk through all five caves in about an hour. UNESCO counts 157 statues and around 2,100 square metres of painted walls and ceilings. Most of the paintings you see are in the 18th-century Kandyan style, laid over older work, and every cave is still used for worship.
1. Cave 1, Devaraja Lena (Cave of the Divine King)
The first cave is small and almost filled by a reclining Buddha cut from the living rock, about 14 metres long. Look for the painted soles of the feet. A shrine to the god Vishnu is linked by tradition to this cave's name.
2. Cave 2, Maharaja Lena (Cave of the Great Kings)
The heart of Dambulla. BuddhaNet gives its size as 122 feet long, 75 feet wide and 21 feet high. The name comes from its two royal statues: the painted wooden figure said to be Valagamba near the entrance and, further in, one said to be Nissanka Malla. Gods are here too; art historians identify statues of Upulvan and Saman, who are honoured as protectors of the island and of Buddhism.
At the far end, a pot inside a low wall catches water that drips steadily from the rock ceiling. Pilgrims believe this water has healing power, and people say it has never run dry, even in drought. Look up as you stand there: the ceiling is a single painted sky of Buddhas and stories.
3. Cave 3, Maha Alut Vihara (Great New Temple)
Brighter and more ordered than Cave 2, this is Kirti Sri Rajasinha's cave. Tradition says it was a storeroom before the king turned it into a shrine. A life-size statue of the king stands near the entrance, among dozens of seated and standing Buddhas.
4. Caves 4 and 5
The two smaller caves at the end hold seated Buddhas and later paintings. They are quieter, and a good place to pause before you walk back down.
⚠️ Heads up
This is an active temple. Cover shoulders and knees, take off shoes and hats before the caves, and never pose with your back to a Buddha statue. Photography rules can change; follow the signs and the monks' instructions.
What stories do locals tell about Dambulla?
Around the rock, a few stories are told again and again. They are part of what makes the caves feel alive, and each is a belief, not a proven fact.
- The king's thanksgiving: many people in Dambulla say Valagamba made the caves a temple to thank the monks who hid him, and that the temple has been cared for by monks ever since.
- The water that never stops: the drip in Cave 2 is believed to be pure and healing, and is used in rituals.
- The golden rock: the name Rangiri is often explained as a memory of Nissanka Malla's gold, still visible in traces on some statues.
- Gods who guard the caves: Vishnu, Saman and other deities share the space with the Buddha, as in many Sri Lankan temples, honoured as guardians of the Dhamma.
🗓️ Best time to go
Go early in the morning, before the heat and the tour buses. The climb up the rock is easier in the cool, and the light inside the caves is softer.
How do you visit the Dambulla cave temple?
The Dambulla cave temple sits above Dambulla town in the Matale District, on the main road between Kandy and Anuradhapura and a short drive from Sigiriya. Visitors buy tickets at the foot of the rock and climb a stepped path to the caves. Allow two hours including the climb.
- Getting there: see our guide on how to get to Dambulla from Colombo.
- Entry fee: we could not find a current official fee page, so check at the ticket office; UNESCO notes that part of the gate money from foreign visitors goes to the monks for upkeep.
- Where to stay: Jetwing Lake, The Paradise Dambulla or Lavendish Country Resort; more in our Dambulla hotels guide.
- Make a day of it: a village walk or bike tour from Jetwing Lake, a jeep safari from Dambulla or a quiet hour at Popham's Arboretum.
🌴 Plan it now
Open the Dambulla Cave Temple listing for the map, then see all our heritage sites in the Cultural Triangle.
| Cave | Name | Linked to | Look for |
|---|---|---|---|
| 1 | Devaraja Lena | Early Brahmi inscription | 14 m reclining Buddha |
| 2 | Maharaja Lena | Valagamba and Nissanka Malla | Royal statues, dripping water pot, painted ceiling |
| 3 | Maha Alut Vihara | Kirti Sri Rajasinha, 18th century | Statue of the Kandyan king |
| 4 | Pachima Vihara | Later additions | Seated Buddhas |
| 5 | Devana Alut Vihara | The most recent cave | Later paintings |
Dambulla cave temple history FAQ
Who built the Dambulla cave temple?
No single person built it. UNESCO says monks lived in the caves from the 3rd century BCE. Local tradition credits King Valagamba with making them a royal temple in the first century BCE, King Nissanka Malla gilded and expanded them around 1190, and the Kandyan king Kirti Sri Rajasinha restored them in the 18th century.
Did King Valagamba really hide at Dambulla?
Local tradition says he did, and a statue said to be him stands in Cave 2. The Mahavamsa, the main chronicle of his reign, describes his fourteen years in hiding but does not name Dambulla, so the link cannot be proven from that source.
Why is it called the Golden Temple?
The name is usually traced to King Nissanka Malla, who gilded the caves in the 12th century. The rock is also called Rangiri, meaning golden rock in Sinhala.
How old are the paintings at Dambulla?
Most of the murals you see today are in the 18th-century Kandyan style. UNESCO says the caves were renovated many times before taking their present form in the 18th century, with older layers beneath.
How many caves and statues are there?
There are five caves. UNESCO counts 157 statues and about 2,100 square metres of murals.
Is the water in Cave 2 really never dry?
Pilgrims believe the water dripping into the pot in Cave 2 never runs out and has healing power. It is a cherished belief rather than a measured fact, and it is treated with respect at the temple.
🧭 Ready for Sri Lanka?
Read more island stories: Sigiriya and King Kashyapa, Anuradhapura and the Sri Maha Bodhi, Polonnaruwa and Parakramabahu and Mihintale and the coming of Buddhism.















