< Go Back

San Bernabé Ocotepec

Photos: Alcaldía Magdalena Contreras

San Bernabé Ocotepec is a colorful mountainside town that seems simultaneously cut off from the city, and a vital part of it. One of the original settlements of Magdalena Contreras, its name betrays something of the town’s fascinating history.

The “hill of ocotes” refers to the types of pine trees growing in the area and at higher altitudes straight south through Central America. The town of Ocotal in Nicaragua gets its name from the same tree. Ocotepec was named by Tepaneca and Otomí peoples and served as something of a borderland between hunter-gatherer peoples who lived at higher altitudes, even after the Spanish invasion.

By 1535, a temple had already been built here in honor of Saint Barnabus, the Apostle. In this case, it was Dominican friars working with the local people. The atrium of the church to this day holds one of the ancient ballgame rings and a ceremonial urn also carved from stone.

  • The town still celebrates the feast day of Saint Barnabus on June 11 of each year.
  • The present church has been the parish church here only since 1990. The building suffered significant damage in the earthquake of 2017.

The church is also very well regarded for having protected the Lienzo de San Bernabé Ocotepec for more than 450 years. The document’s  intent was to protect the people’s title to the land, but it’s ended up strengthening cohesion across the community. Although the original from the 16th century was eventually lost, an 18th century copy is believed to be both accurate and legally binding. It contains a description of the congregation, its size and territorial nomenclature. Written on a piece of linen some 195 x 150 centimeters, the document’s oil painted drawings depict the scenes, characters, landscapes and description of the entire area.

International visitors very often arrive here after a visit to Mazatepetl and the ruins at the very top of the hill. It’s increasingly common though to spend an afternoon touring this and some of the other little towns that occupy the rugged lands leading up to Los Dinamos and the national park there. The Parque Ecoturistico San Bernabé Ocotepec is just west of the town and a little closer.

How to get here
  • Álvaro Obregón & Buenavista, San Bernabé Ocotepec, La Magdalena Contreras, 10300 CDMX
  • 55 5585 4352


San Bernabé Apóstol, Ocotepec

Nearest at 0.11 kms.

Mazatepetl Eco-Archaeological Park

Nearest at 1.09 kms.

Mercado Cerro del Judío

Nearest at 1.31 kms.


San Bernabé Apóstol, Ocotepec

A church begun in the 1530s at the center of rustic walkable San Berna . . .

San Bernabé Ocotepec Ecotourism Park

A dramatic natural park in San Bernabé Ocotepec . . .

Magdalena Atlitic

One of the most exceptional of original villages in La Magdalena...

Mercado Turistico la Magdalena

The heart of la Magdalena, the market's a great place to eat in a classic mountain town.

Ejidal San Nicolás Totolapan Park

One of Southern Mexico City's least Mexico City places, it's an outstanding forest adventure and so much more.

Practical guide and services