Devagiri Viharaya
Beyond the Sun Gate of Koggala
Wedged between the brackish waters of Koggala Lagoon and the pounding surf of the Indian Ocean, a scarred granite outcrop rises behind a whitewashed boundary wall, hiding one of southern Sri Lanka’s most fiercely guarded spiritual crossroads. Listed in archaeological records as Devagiri Viharaya and known to locals as the Hirugal Devalaya, this hillside compound refuses to settle into a single religious identity. At the foot of the slope, a balustraded staircase climbs toward a quiet Buddhist terrace shaded by an ancient Bodhi tree. Immediately beside it stands a blazing ochre archway crowned by a snarling Kibihi Muhuna mask, flanked by carved Doratupala guardians and centered on a radiant golden sun. Stepping through that threshold means entering a landscape where orthodox monasticism, ancient deity worship, and the violent scars of modern warfare sit locked together in the same stubborn rock.

Inside the historic image house, the temple’s documented Buddhist lineage takes shape in the unmistakable aesthetic of the late 18th century, when Kandyan artistic traditions reached across the island’s southern coast. Passing beneath a sculpted makara thorana, the mythical dragon arch writhing with celestial guardians, visitors enter a dim sanctuary dominated by seated and reclining Buddha statues. Their crisp, rhythmic robe folds and flame shaped ushnisha bear the signature hallmarks of Kandyan sculpture. Across the interior walls, mineral pigment murals unfold in vivid narrative sequence, illustrating the Suvisi Vivarana, the twenty four solemn proclamations of future Buddhahood, alongside serene processions of Maha Rahath disciples clutching lotus blossoms. It is a masterwork of vernacular southern devotion, preserved inside thick masonry walls darkened by decades of incense and coconut oil smoke.

Yet at Devagiri Viharaya, enlightenment shares its courtyard with the raw, practical power of the Sinhalese spirit pantheon. Flanking the Buddhist precinct sit two dedicated devalayas housing five formidable deities who govern the unpredictable dangers of coastal life. In the shrine to the left preside Vishnu and Kataragama, invoked for divine protection and worldly intervention. In the shrine to the right stand Devol, Pattini and Suniyam, an intense triad ruling over maritime survival, justice, pestilence, and dark sorcery. Locals do not ascend these red steps merely to meditate on impermanence. They come to light clay lamps, tie vows and negotiate directly with guardian powers whose legends are tangled in shipwreck lore and centuries of southern village memory.

Long before 18th century artisans painted a single lotus petal on the temple walls, this granite ridge belonged entirely to the Hirugal Devalaya, literally the Sun Stone Shrine, remembered under older names like Rihigal and Nirasgal Devalaya. According to Sinhalese folk tradition, ancient Sri Lanka was home to four primary sanctuaries dedicated to Hiru, the Sun God, two of which stood in the island’s deep south as remnants of an archaic celestial cult predating the arrival of Buddhism. Perched on this strategic rocky spine above Koggala’s waters, the shrine served for generations as a spiritual fortress where coastal families sought shelter from storms, disease and invading armies.

That ancient permanence was shattered in 1942, when World War II arrived on Koggala’s doorstep with devastating force. Recognizing the strategic value of the lagoon and coastline, British colonial authorities evicted surrounding villages and transformed the area into a heavily fortified Royal Air Force flying boat base and emergency airstrip. Needing massive quantities of crushed granite to lay the runway, military engineers turned their explosives onto the sacred rock formation of the Hirugal Devalaya, blasting away huge sections of the hillside to pave a wartime tarmac. In Koggala, that act is still spoken of not as wartime engineering, but as outright desecration. Persistent local accounts maintain that the British personnel who dismantled the sacred rock suffered sudden, heavy casualties, a grim folkloric reckoning that cemented the shrine’s reputation as ground you tamper with at your peril.

Those wartime detonations also obliterated a tantalising piece of Sri Lanka’s written past, leaving behind an archaeological mystery that still frustrates historians today. Oral tradition insists that three ancient rock inscriptions, believed to record the decrees of an early ruler of the southern kingdom, once stood carved directly into the granite face housing the shrine. When archaeologists finally surveyed the surviving rock in later decades, however, they found no trace of the texts. If the inscriptions existed, they were almost certainly pulverized into runway gravel beneath British boots in 1942. It is a stark Sri Lankan irony, a site whose deepest written proof was blown apart to fight a 20th century war, leaving spoken history and surviving 18th century plasterwork to carry the weight of a much older story.

On December 7, 2001, Sri Lanka’s Antiquities Ordinance formally declared Devagiri Viharaya a protected archaeological monument, finally drawing a legal boundary around the historic image house and shrine. Today, that quiet hillside sits wedged between two very different worlds, the overgrown, half forgotten tarmac of the old Koggala airfield on one side and a booming southern coastline packed with surf schools, lagoon tours, and boutique resorts on the other. Thousands of travellers speed past its boundary wall every week without ever glancing up the slope, drawn instead to the beaches and stilt fishermen just down the road. Yet for the surrounding community, the compound remains an indispensable anchor where Kandyan craftsmanship, ancient solar lore, and centuries of coastal survival continue to hold their ground in the shadow of modern development.

🗺️ Location
Matara Road (A2), Koggala, Habaraduwa, Sri Lanka
🚆 How to get there
Getting to Devagiri Viharaya from Unawatuna is straightforward, as the temple sits roughly 10 kilometres down Matara Road in Koggala. A tuk tuk ride along the coast takes around fifteen minutes and costs roughly 1200 LKR each way depending on traffic and whether you book through an app or hail one on the street. If you plan on temple hopping without waiting around for rides, hiring a local driver for a half day typically costs around 5000 LKR. Its central position along the southern coastal road makes it easy to combine with the Japanese Peace Pagoda overlooking Unawatuna Bay, the ancient Yatagala Cave Temple and Agrabodhi Temple further east in Weligama.
⭐ Attraction Info
Devagiri Viharaya is open daily between 6am and 8pm. Admission to the temple and shrine grounds is completely free, though visitors seeking a traditional blessing or tying a vow at the devalayas are expected to leave a modest cash donation for the shrine priest or temple upkeep. As this is an active place of worship, respectful temple etiquette applies at all times. Visitors must remove their shoes and hats before ascending the stairs onto the sacred terrace, keep shoulders and knees fully covered, speak quietly and never pose for photographs with their backs turned toward any Buddha statue. There are no facilities at the site or in the nearby area.

Thanks for reading about Devagiri Viharaya. Check out more awesome destinations here!





