The Italian city of Matera is one of those places that makes you appreciate human resilience and creativity. For millennia—up until the 1950s!—families lived, with a few modern comforts by the end (at least according to a local museum), in houses that were more like cave dwellings, carved into the sides of the steep, chalky slopes of the Apennine Mountains rising beside a river in Basilicata, The Sassi, as they are known, are some of the oldest human settlements in what is now Italy, dating from the Paleolithic era.

Of course, living in a cave—even if you’ve kitted it out with cookware and bedding and wooden furniture—along with your farm animals is going to bring up some public health issues. During a tour organized by the excellent travel designers at I learned that by the middle of the 20th century, Matera was known as the “shame of Italy” for its poverty and poor sanitation, and residents were relocated to more modern housing. The place was virtually abandoned until the 1980s, and its marvelous architectural heritage was left to fall into further disrepair (understatement).

Now of course, if a place is historic and beautiful, there’s probably some smart entrepreneur who has figured out how to fit a tourism product inside of it. Now Matera is back to life as a place people want to visit, with the cave homes cleaned up and transformed into private accommodations, from simple Airbnbs to lavish hotels. It certainly helps that the city was recently given a sexy turn in the spotlight in the James Bond film No Time to Die; it also apparently makes a good cinematic stand-in for the ancient villages that feature in Bible stories, as another was being filmed during my visit.

It all made perfect sense for .

Sextantio has been a reference for in-the-know travelers to Italy for more than a decade. The brand refined and promote the albergo diffuso concept, in which “diffused hotels” fit themselves into antique, possibly abandoned villages, demonstrating that respect for history should win out over creating new products with every modern comfort in mind. They’ve purchased nine preserved historic villages, which are threatened by new urban development, and are executing a plan to save their “historical soul” by turning them into tourism products. (There’s quite a lot of this going on in Italy, but while it’s often palaces, Sextantio's approach stands out for going further back in time, recognizing the humble rather than merely the aristocratic, and for making cave dwellings downright glamorous.)

The first hotel, in Santo Stefano di Sessano in Abruzzo, is a Middle Ages village, which they call a “suggestive expression of an historical patrimony but also a seductive ‘landscape’ endangered in its architectural heritage and agricultural landscape integrity.”

At the Matera outpost, called (the cave of the city), they reprised their magic, working again with architect David Chipperfield. The renovation is so sensitive and subtle that you don’t immediately question the heated floor beneath your feet or the electric lights that illuminate the bathtub in the back of the room.

The hotel now comprises 18 rooms and a common area in what was once a rock church, where a lavish homemade breakfast is served. Guided tours and various massages can be arranged, and along with the heating and light, some of the rooms are simply enormous, some more than 1,700 square feet. They’re furnished comfortably but simply, with long wood tables (mine worked well as an inspiring writing desk, candle beside my computer) and headboards over the cushy beds—that excellent guide told me he and his father had worked as carpenters on the project.

It makes one smile to notice that one of the room categories is “superior cave,” but come to think of it, that’s a pretty good motto for what Sextantio is creating—and turning places of misery into places of beauty along the way.