Swat

Raja Gira Castle, Udegram: Hike and History

What the climb to Raja Gira Castle above Udegram involves, how long it takes, and the layered history behind the hilltop ruins.

By Explore Pakistan · Published 25 September 2026 · 5 min read

Raja Gira Castle is a ruined hilltop fortress above the village of Udegram, about 10 km southwest of Mingora in the Swat valley. The climb from the village takes most visitors 30 to 45 minutes on a stony path, and it ends at defensive walls that were first built well over two thousand years ago and reused, rebuilt and fought over for most of the time since.

This guide covers the walk, what remains to see, and the history layered into the site.

At a glance
LocationAbove Udegram, about 10 km from Mingora
Earliest fortification4th–2nd century BCE (Greek period)
Climb time30–45 minutes, steep in places
What to bringGood shoes, water, a hat
Entry feeNone reported

The site and its history

The hill above Udegram has been fortified in layers since antiquity. Aurel Stein and later the Italian scholar Giuseppe Tucci identified the area as the site of ancient Ora, one of the strongholds that Alexander the Great's forces took during the 327 BCE campaign into Swat. The oldest surviving walls on the ridge date from that Greek-influenced period, with a defended redoubt on massive buttressed walls running for roughly 800 yards along the crest.

The site's more famous name, however, comes from a much later story. Local tradition holds that around a thousand years ago the fortress was held by Raja Gira, described as the last Buddhist or Hindu Shahi ruler of the area, against the invading army of Mahmud of Ghazni. According to the legend, the siege dragged on for months until Mahmud's forces found and cut off the fortress's underground water supply, forcing its surrender. Whatever the precise history behind the story, the mosque built to mark Mahmud's victory still stands on the same hillside, just below the castle walls.

Formal excavation of the site began under Stein's survey work in the 1930s, and systematic digs started in 1956, uncovering successive phases of building from the Greek period through to the medieval Ghaznavid era.

The walk up

The path starts from Udegram village and climbs the hillside in a series of switchbacks. It is not technical, but it is steep in stretches and unshaded, so an early morning or late afternoon start is more comfortable than the middle of a summer day. Thirty to forty-five minutes is typical for a reasonably fit adult; allow longer with children or older relatives, and treat it as a proper hike rather than a stroll.

There is no marked trail signage, so it is worth asking locally in Udegram for the current path, since parts of it shift after heavy rain.

What you see at the top

The reward for the climb is a long stretch of ancient wall running along the ridge, with the remains of towers and a defended enclosure, and a wide view over Udegram and the Swat valley below. Little is signposted, so the ruins reward a visitor who already knows some of the history rather than one hoping for on-site information boards.

Combine the climb with a stop at the Mahmud Ghaznavi Mosque, on the same hillside a short walk below the castle; our separate guide to the Mahmud Ghaznavi Mosque covers that site in detail.

Getting there

Udegram is a short drive southwest of Mingora on a paved road, easily done as a half-day trip from town. There is no public transport laid on for tourists; a hired car or taxi from Mingora is the practical option, and drivers in Udegram village can point out where the path to the castle begins.

Our Swat valley guide has more on getting around the district and combining Udegram with other stops.

Is it worth the climb?

For anyone with an interest in the region's history, yes. Few sites in Swat let you stand on walls built before Alexander's campaign and reused into the Islamic period, all in one short climb. If you are travelling with young children, anyone with mobility limitations, or in the heat of midday in summer, the steep, unshaded path is a real obstacle, and the Mahmud Ghaznavi Mosque at the base of the hill offers much of the historical interest with none of the climb.

Is it safe to visit Udegram and Raja Gira Castle?

Udegram is a settled village close to Mingora and sees regular local and domestic visitors. The UK government's Pakistan travel advice (updated September 2026) currently advises against all travel to Swat district as a whole, following a suicide bombing at Kabal police station in August 2026 that killed 17 people. Pakistanis travel through the district in large numbers day to day, but anyone planning a visit, particularly holders of foreign passports, should check current advice and recent local news before travelling; a foreign government's advisory can also affect travel insurance.

Frequently asked questions

How long does the hike to Raja Gira Castle take?

Most visitors take 30 to 45 minutes to climb from Udegram village to the ruins, on a steep but non-technical path.

Who was Raja Gira?

Local tradition names him as the last Buddhist or Hindu Shahi ruler to hold the fortress, defeated after a long siege by Mahmud of Ghazni's army around the 11th century.

Is there an entry fee for Raja Gira Castle?

No fee is reported. There is no ticket booth or formal visitor centre at the site.

Can I visit Raja Gira Castle and the Mahmud Ghaznavi Mosque together?

Yes. The mosque sits on the same hillside below the castle walls, and most visitors combine both in a single half-day trip from Mingora.

Is the climb suitable for children or older visitors?

It is steep and unshaded in places, so it suits reasonably fit visitors. Families with young children or older relatives may prefer to visit the mosque at the base of the hill instead.

Keep reading

More from Swat

All Khyber Pakhtunkhwa guides

Timeless beauty · Serene waters · Living culture

Want us to plan it for you?

Tell us your dates, your group and where you want to go. A travel expert will shape a route for you within a day.