Walk to the edge of the old town and the ground simply stops. Below you a limestone gorge drops away, its walls pocked with doorways, windows and chapels cut by hands that have been gone for a thousand years. This is Massafra, Puglia, a town of about 30,000 people twenty kilometres from Taranto, split in two by the Gravina di San Marco and folded around a second ravine, the Gravina della Madonna della Scala. Hermit monks, Byzantine refugees and ordinary families all made their homes inside this rock, and the place earned a nickname that sounds like an exaggeration until you see it: the “Tebaide d’Italia,” the Thebaid of Italy, after the Egyptian desert where the first Christian hermits retreated.
Most visitors to the Taranto area never get here. That’s their loss, and your advantage. Massafra has a castle on the cliff edge, a sanctuary reached by a baroque staircase, a legendary medieval “pharmacy” in a cave and a food table that belongs to the quiet, inland side of Puglia. Keep reading and you’ll have what you need to see it properly: what’s worth your time, when to go, and how to fit it into a wider trip.
📜 A Short History of Massafra
The town’s first firm appearance in the record is a Lombard-era document of 970, which already mentions its castle. Behind that date lies something much older. The ravines shelter dwellings and tombs that stretch back deep into prehistory, and from the early Middle Ages onward the soft limestone attracted communities of Eastern monks who carved churches, cells and refectories straight into the walls and painted them with frescoes. A great many of these underground spaces survive today.
The centuries that followed read like a roll call of Puglia’s rulers. After the Norman conquest the town was fortified and the castle restored. It belonged to the Principality of Taranto and stayed a free town until 1463, then passed through a succession of feudal families. In 1497 troops of Charles VIII of France sacked it. The Imperiali family later rebuilt parts of the castle in the 18th century, and in 1743, when an earthquake devastated much of the Taranto area, Massafra was spared. The townspeople credited the Madonna della Scala, and in 1776 they named her their patron. That is why a sanctuary at the bottom of a ravine still sits at the emotional centre of the town.

🗓️ Best Time to Visit Massafra
| Season | What to expect |
|---|---|
| Spring (Mar–May) | The best window. Mild weather for ravine walks, green slopes, and the town’s biggest festival around the first Sunday of May |
| Summer (Jun–Aug) | Hot and dry, and the ravine floor offers little shade. Go early morning or late afternoon, and pair Massafra with a beach day on the coast |
| Autumn (Sep–Nov) | Comfortable temperatures, soft light on the cliffs and few visitors. Excellent for hiking |
| Winter (Dec–Feb) | Mild but quieter, with some sites open on shorter hours. Check ahead for the rock churches and guided visits |
💡 Pro tip: the Festa della Madonna della Scala is the one date worth building a trip around. The main celebration falls around the first Sunday of May, with processions, the symbolic handing over of the city’s keys to the Madonna, band music and fireworks. Festival programmes shift slightly each year, so check the town’s tourist office before you book.
🏞️ The Two Ravines: Where Massafra Really Lives
Everything in Massafra is organised around its gorges. They are the reason the town exists, and they are the reason to come.
Gravina di San Marco
The Gravina di San Marco cuts the historic centre, the old terra, away from the 19th-century Borgo Santa Caterina on the opposite rim. The old bridge across it is the classic viewpoint, and the best place to understand the scale of the place. Cave dwellings and rock-cut churches line the walls, and you can see how an entire neighbourhood was stacked into the cliff. The ravine is also what gave Massafra its Tebaide nickname.
Gravina della Madonna della Scala
The second gorge is deeper and wilder. The Gravina della Madonna della Scala drops roughly forty metres and holds more than two hundred cavities that were once homes, storerooms and shelters. At the bottom sits the sanctuary that gives the ravine its name, and a rock village that rewards a slow wander.
💡 Pro tip: if you only have time for one ravine, choose the Madonna della Scala one. It combines the sanctuary, the staircase and the cave village in a single compact walk, and it is also the start of the route to the Mago Greguro caves.
⛪ Sanctuary of the Madonna della Scala
The Santuario della Madonna della Scala is the spiritual heart of Massafra. The story behind it goes back to the 14th century and the so-called Miracle of the Deer: two hunted deer, the legend says, knelt before a rock bearing a Byzantine fresco of the Virgin, and a small chapel was raised on the spot. The present sanctuary was built over that early chapel in 1731, and the old fresco still sits at the heart of the 18th-century altar.
You reach it from the eastern rim of the gorge by a baroque staircase of 125 steps, which is the reason for the name della Scala, “of the stairway.” Descending toward the church with the ravine opening around you is one of the best arrival moments in this part of Puglia. On the forecourt you’ll also find the Grotta della Buona Nuova, a frescoed cave partly demolished in the 1800s, a reminder that the sacred layers here run far deeper than the baroque facade suggests.
🧙 The Farmacia del Mago Greguro
Every region has one legend that outlives the rest. In Massafra it is the Mago Greguro, the wizard-healer said to have gathered herbs and brewed remedies around the year 1000, in a complex of about a dozen linked caves hanging halfway up the eastern wall of the Madonna della Scala ravine. The caves are known as the Farmacia del Mago Greguro and the Grotta del Ciclope. Historians add layers to the story: the spaces were later used as an early medieval monastery, and in the late Middle Ages as a pigeon house. The legend places the wizard here with his daughter, called Magarella, a nickname tied to her love of flowers.
Reaching the Farmacia is a proper outing. The route starts at the sanctuary car park, runs out and back, and takes about three hours. It suits walkers in decent shape and it passes the Grotta del Ciclope on the way.
💡 Pro tip: go with a local guide rather than on your own. The Massafra tourist Info Point organises guided hikes to the Farmacia, and the guide will unlock the stories that make an otherwise bare cave worth the climb. Book ahead through the Info Point, which is open mornings and late afternoons. For more on trail planning across the region, see our hiking in Puglia guide.
🕳️ The Rock Churches of the Old Town
You don’t have to hike into a gorge to find Massafra’s hidden churches. Several sit right in the historic centre, tucked into the cliff face above the Gravina di San Marco.
- Chiesa-cripta di San Marco: the best-preserved crypt in town, with three aisles and a large fresco of the saint
- Chiesa della Candelora: dated to the late 12th century, with frescoes and both Greek and Latin inscriptions
- Chiesa di Sant’Antonio Abate: a frescoed rock church in the heart of the old town
- San Leonardo and San Biagio: two more of the old-town rock churches, worth asking about at the Info Point
- Santa Marina: a larger church in the rock village inside the Gravina di San Marco, with three altars and graffiti inscriptions
The Antica Chiesa Madre is the odd one out and a good counterpoint. It is a 16th-century church built over a medieval crypt, and its Chapel of Purgatory is covered in frescoes.
💡 Pro tip: many of the crypts open only by arrangement or on guided tours, and hours change. Ask at the Info Point before you set out, because turning up at a locked door is the most common way visitors miss the best interiors.
🏰 The Castle of Massafra
On the rim above the Gravina di San Marco, the Castello di Massafra looks over the gorge. Its first documented mention is the Lombard record of 970, and a later document from 1081 ties it to a Norman holder. Under the Angevins it took on the fortress look it keeps today, with a square layout and a tower at each corner, three round and one octagonal. The Imperiali family rebuilt the octagonal tower and the ravine-facing front in the 18th century, to a design by the architect Mauro Manieri.
Today the rooms hold the town library and the civic museum of wine and oil civilisation, which shows farm tools used from the 1500s to the last century. It’s a small museum, but it tells you how the town fed itself, and the terrace views across the ravine are the real prize. If castles are your theme, our guide to castles in Puglia puts this one in context, and the Aragonese Castle in Taranto makes a natural pairing for the same day.
💡 Pro tip: the light on the ravine is best in the late afternoon, when the cliff glows. Time your castle visit for then and you get the museum and the view in one stop.
🍝 What to Eat in Massafra
Massafra eats like inland Puglia: bread, vegetables, legumes and olive oil, with very little fuss. A few dishes to look for:
- Orecchiette con cime di rapa: fresh ear-shaped pasta with turnip tops, garlic and chilli
- Fave e cicorie: creamy fava bean purée with bitter wild chicory, a poor-man’s dish that tastes anything but poor
- Gnummarieddi: small rolls of lamb offal grilled over embers, for the adventurous
- Puccia: the soft Salento-style bread roll, filled or eaten plain
- Cartellate: fried pastry ribbons shaped into rosettes and soaked in honey or cooked grape must, a Christmas tradition
Taranto’s seafood, especially mussels, is a short drive away if you want to balance the vegetable-heavy table. Reds from the Manduria area suit this food well, and our Puglia wine guide explains the grapes behind them.
⭐ Top-Rated Food Experience in Puglia
Discover authentic frisella, local markets, and hidden bakeries with a local guide. Perfect for first-time visitors.
✔ Instant confirmation
✔ Small groups
💡 Pro tip: book lunch on festival weekends. Local families fill the trattorias, and a table for two on the Sunday of the Madonna della Scala celebration can be hard to find without a reservation.
🚗 How to Get to Massafra
Massafra sits on the SS7 about twenty kilometres northwest of Taranto, which makes it one of the easiest ravine towns to reach.
- By car: the simplest option. From Taranto it is a short drive on the SS7, and from Bari it takes a little over an hour. Parking near the sanctuary is straightforward
- By train: there are regional services to Massafra from Taranto, and onward connections from Bari and Gioia del Colle
- By air: the nearest airports are Bari Karol Wojtyła and Brindisi Salento, each roughly an hour and a quarter away by car
⭐ Rent Your Car
Search rental deals with Rentalcars — easy and hassle-free.
✔ Instant confirmation
A car also lets you string Massafra together with nearby stops in a single day. Without one, plan on using the train and sticking to the old town.
🗺️ 5 Places to Visit Near Massafra
- Taranto: about twenty kilometres away, with the museum of Magna Graecia and the old island city
- Grottaglie: the ceramics town, a good second stop in the same area
- Gravina di Laterza: another canyon landscape, wilder and bigger than Massafra’s
- Matera: the famous cave city of Basilicata, within about an hour
- Alberobello: the trulli capital, if you want to round the day out with the postcard Puglia
Beach days are close as well. See our guides to the beaches around Taranto and Campomarino di Maruggio for the nearest sand.
🛏️ Where to Stay
Most visitors base themselves in Taranto and visit Massafra as a day trip, and that works well. If you’d rather sleep close to the ravines, look for a masseria or a small B&B in the surrounding countryside. Our guide to the best area to stay in Puglia helps you choose a base by travel style, and the best towns in Puglia list puts Massafra alongside its bigger neighbours.
Plan Your Visit to Massafra
Massafra rewards the traveller who is willing to look down. The postcard Puglia of whitewashed towns and trulli sits above ground, and this town keeps its best material below the rim, in churches, caves and a staircase that drops into a gorge. Give it a half day if you’re short on time, or a full day if you add the Farmacia del Mago Greguro hike and the castle.
Sort your car rental, check the Info Point for guided visits, and aim for spring or autumn. For more of this corner of the region, our guides to Taranto and the Gravina di Laterza go further into the same rocky landscape.
FAQs
Yes, especially if you like historic towns with a different character. Massafra combines two ravines, frescoed rock churches, a castle and a sanctuary, all within a compact area and with far fewer visitors than the better-known towns nearby.
The nickname, “Thebaid of Italy,” refers to the long tradition of hermits and monks who lived in the rock caves and churches of its ravines, echoing the early Christian hermits of the Egyptian desert.
Spring and autumn offer the most comfortable weather for walking the ravines. Early May is the best time if you want to catch the Festa della Madonna della Scala.
By car it is about twenty kilometres on the SS7. There are also regional trains and local buses between Taranto and Massafra.
You can reach the old town by train, but a car makes it much easier to visit the sanctuary, the ravine trailheads and nearby sights like Grottaglie in the same day.
The route is an out-and-back walk of about three hours that suits reasonably fit walkers. A guided visit through the Massafra Info Point is the better option, since the site is hard to find and the stories behind it come from the guide.
✈️ Your Trip Planning Checklist
✅ Book your flights: Find the best airfare deals with Skyscanner or Aviasales.
🏨 Secure your stay: Compare hotel rates easily on Booking.com or Hotellook.
🛡️ Don’t forget travel insurance: Stay protected with Ekta or VisitorsCoverage — reliable and flexible options.
🎟️ Book tours & experiences: I always use Get Your Guide or Viator for unforgettable activities, skip-the-line tickets, and local adventures.
🚗 Need a car? Search rental deals with Rentalcars and DiscoverCars — easy and hassle-free.
🚕 Taxi or transfer? Pre-book your ride with WelcomePickups or GetTransfer for a smooth arrival.
🚆 Traveling by train or bus? Check schedules and book tickets in advance with Omio.
