Most travel coverage describes Ujué, a hilltop village in the Navarra region east of Pamplona, as one of Spain’s prettiest medieval settlements: stone houses, a fortress-like church, sweeping views, and good migas. That much is true. What almost none of that coverage explains is that the fortress-church is not decorative leftover from some vague medieval past. It was built as a working link in the frontier defense system of the Kingdom of Pamplona, and centuries later a king of Navarra, Carlos II, chose to have his own body divided three ways in death so that one part of him would remain sealed inside that church forever.

That detail matters because it reframes everything else about Ujué from scenery into evidence. The narrow stone streets, the migas eaten after the climb up, the black-tunicked pilgrims who still walk here every spring: all of it connects to a specific, documented relationship between this hilltop and the medieval monarchs who ruled Navarra from Pamplona and Olite. Skip that history and Ujué is a nice half-day trip. Know it, and the village becomes one of the clearest physical records of how devoted, and how anxious, Navarra’s Évreux dynasty kings were to keep a remote sierra outpost from disappearing entirely.

This account draws on the Universidad de Navarra’s Cátedra de Patrimonio y Arte Navarro, the institutional Gran Enciclopedia de Navarra, and Navarra press coverage of the village’s annual romería, cross-checked against each other on every dated claim, the same verification standard behind every article on this site.

A Frontier Watchtower Before It Was a Sanctuary

Archaeological evidence places scattered Vascón settlement in the hills around Ujué before the Roman period. The village as it exists today took shape later, in the late 8th or early 9th century, when those scattered populations concentrated around a single fortress built on the ridge now known as the Sierra de Ujué, at roughly 815 meters above sea level. Local tradition, not confirmed by any surviving 9th-century document, credits Íñigo Arista, the first king of the Kingdom of Pamplona, with founding that original fortress as an advanced defensive post against Al-Andalus. What is documented, from the Arab side, is a 10th-century chronicle by the geographer Al-Himyarí, who described a castle called “Santa María” as the first fortress in the Kingdom of Pamplona’s defensive system, built with more solidity and sited higher than any other, positioned to watch the river valleys of the Arga, the Cidacos, and the Aragón for enemy movement.

That elevated position is still the first thing a visitor notices. On a clear day, the sierra offers sightlines from the Pyrenees in the north to the Ebro valley and the silhouette of Moncayo in the south, a genuine watchtower view that made the site as valuable militarily as it later became religiously.

A fuero, the medieval charter granting residents legal freedoms, is traditionally attributed to King Sancho Ramírez in 1076, though historians studying the surviving text consider its authenticity at least questionable. What is better documented is that Sancho Ramírez’s era also saw the founding of the church at Ujué, which by 1093 had been placed under the Aragonese monastery of Montearagón, along with a number of other Navarrese churches. That arrangement was disputed for centuries by the bishops of Pamplona, who never fully ceded jurisdiction, and the dispute only ended in 1570, when Montearagón’s Navarrese priories, including Ujué’s, were formally transferred to the diocese of Barbastro.

The Kings Who Wouldn’t Let It Die

Ujué nearly disappeared twice. The first crisis came after the Black Death reached Navarra in 1348. Roughly twenty years later, only about fifty households remained in a village that had held closer to 250 families at its early 14th-century peak, including fifty families from the neighboring hamlet of Pitillas, which was then still administratively dependent on Ujué.

What saved the village was an unusually persistent attachment from the Évreux dynasty that ruled Navarra through the 14th and 15th centuries. Carlos II, remembered in most histories by his nickname “el Malo,” funded the Gothic rebuilding of the church, paid to have the venerated wooden statue of the Virgin encased in silver, and even began construction on a planned university, an Estudio General, at Ujué, a project abandoned only when the royal treasury ran short. His devotion culminated in his own will: on his death in 1387, his entrails went to Roncesvalles, his body was buried in Pamplona Cathedral, and his heart was carried to Ujué, where it remains today inside a wooden ark painted in 1406 with hearts and the arms of Navarra by a craftsman recorded only as “maestro Jaymet.” The ark still sits behind a grille at the feet of the Virgin’s image.

His son, Carlos III, “el Noble,” kept up the family’s devotion from his own court at nearby Olite, organizing frequent royal pilgrimages to the sanctuary and, in 1394, donating a gilded silver chalice decorated with enamels, the work of silversmith Ferrando de Sepúlveda, now held in the Museo de Navarra in Pamplona. Carlos III’s daughter, Blanca I of Navarra, continued the tradition of pilgrimage and instituted a formal novena to the Virgin of Ujué in 1436. Her will asked that she be buried at Ujué as well, but civil war engulfing Navarra at the time of her death in 1441 made that impossible, and she was instead buried at Santa María de Nieva, in Castile, where she died. It fell to her sister, Leonor, to prevent the village’s final collapse: by 1478, only 26 houses in Ujué remained standing, a dozen of them empty, and Leonor freed the remaining residents from their annual tax obligations to keep the settlement, and its sanctuary, from being abandoned entirely.

What Survived the 1512 Conquest

Navarra’s kingdom was conquered by Ferdinand the Catholic beginning in 1512, an event covered in detail in the story of Catalina de Navarra, the queen whose throne Ferdinand seized. In the aftermath, Cardinal Cisneros ordered the demolition of Navarra’s remaining fortresses, Ujué’s castle among them. That order was never fully carried out. The two crenellated towers built into the body of the church, one older and squarer, one somewhat later and more slender, were spared, and they still stand today as the clearest physical trace of the site’s military origin.

The village itself recovered. By 1533 its population had stabilized, and it grew steadily enough over the following two and a half centuries that its medieval walls were finally demolished in the late 18th century to make room for expansion, by which point Ujué counted around 170 occupied houses. Growth continued into the early 20th century, driven partly by an expansion of dry-farmed wheat and barley land, and the village reached roughly 1,500 residents by 1929, its high point in the modern era. French troops sacked Ujué during the Peninsular War between 1808 and 1814, and in the 1830s the Spanish state nationalized the sanctuary’s remaining jewelry and possessions as part of a broader confiscation of church property.

Navarra’s Oldest Romería

Every year on the Sunday after the feast of San Marcos, in late April or early May, pilgrims from more than a dozen towns across central Navarra walk to Ujué in one of the region’s most distinctive religious traditions, a romería that press coverage citing Navarrese musicologists describes as possibly the oldest continuously observed pilgrimage in Europe.

Its origin is tied to a specific, dated event: a battle fought in 1043 at Barranquiel, near Tafalla, between a Kingdom of Pamplona force led by King Sancho Garcés and a Muslim army allied, in a detail most retellings skip, with the king’s own brother, Ramiro of Aragón. Watching the battle unfold from within sight of Ujué’s sierra, the people of Tafalla prayed to the Virgin and vowed an annual pilgrimage of thanks if the Christian force prevailed. It did, and the pilgrimage has continued, in some form, ever since.

For most of its history the romería had no fixed date. That changed only in 1725, when the Bishop of Pamplona formally set the pilgrimage for the Sunday following San Marcos, at the request of Tafalla’s town council. The ritual that developed around that date is far more specific than most outside coverage suggests. Pilgrims wear black tunics and hoods called capillos, worn specifically to preserve the anonymity that the pilgrimage’s penitential character demands. Many carry wooden crosses marked with their own initials or those of ancestors who carried the same cross before them, and some walk dragging chains around their ankles as the fulfillment of a personal vow. At dawn, walkers from each town converge at the Cruz del Saludo, a Gothic stone cross from the 14th century that marks the final approach to the sanctuary. At the village entrance, the mayors of Tafalla and Ujué formally exchange ceremonial staffs of office, and their parish priests exchange liturgical copes, Tafalla’s penitential purple for Ujué’s white, before the parish crosses of both towns are brought together and kissed as a gesture of the bond between them.

Pilgrims come from Tafalla, Pitillas, Beire, Carcastillo, Santacara, Murillo el Fruto, Murillo el Cuende, Mélida, Peralta, Olite, San Martín de Unx, Aibar, Ayesa, Lerga, Gallipienzo, Pueyo, and Barásoain, a list that has shifted only slightly over the centuries; Sangüesa dropped out of the tradition because of the distance involved, and Peralta, which had also lapsed, revived its own pilgrimage in the 1960s. After Mass, the day turns festive, with shepherd’s migas, grilled lamb ribs, and Ujué’s own candied almonds, garrapiñadas, shared among families and cuadrillas before the walk home. A separate, better-known Día de las Migas, a food festival built around the same dish, is held on a Sunday each September and draws visitors with no connection to the religious pilgrimage at all.

Visiting Ujué Today

Ujué’s population today is a fraction of its early 20th-century high: 168 residents as of 2025, according to Spain’s national statistics institute, against roughly 1,500 in 1929. The village sits about 53 kilometers south of Pamplona in the Merindad de Olite, close enough for a half-day trip and far enough that it still functions as a working, largely agricultural community rather than a preserved-for-tourism showpiece. Turismo de Navarra lists Ujué among the region’s essential medieval visits, and Mesón Las Torres, the restaurant behind the village’s own visitor information site, is the establishment most associated with serving migas de pastor to travelers who make the climb.

Ujué has no direct connection to San Fermín or the encierro, and this article makes none. Its connection to Pamplona runs through an earlier and longer thread: the same Kingdom of Pamplona whose frontier this fortress once guarded, and the same Carlos II whose body rests, by his own design, in three places at once. His entrails are at Roncesvalles, on the historic Camino route into Navarra. His body lies inside Pamplona’s own cathedral. And his heart, in the ark painted by maestro Jaymet in 1406, is still in Ujué, exactly where he asked it to remain.

In Basque, the village and its Virgin are known as Uxue, and both forms of the name appear on road signs and regional maps across Navarra.

FAQ

How far is Ujué from Pamplona?

Ujué is about 53 kilometers south of Pamplona, in Navarra’s Merindad de Olite. The drive takes roughly 50 minutes, and Ujué also connects to Pamplona, Olite, and Tafalla by local bus service.

Why is a king’s heart kept in Ujué?

Carlos II of Navarra, who funded major rebuilding work at Ujué’s sanctuary during his reign, asked in his will that his heart be preserved there after his death in 1387, while his entrails went to Roncesvalles and his body was buried in Pamplona Cathedral. His heart remains today in a wooden ark painted in 1406, kept behind a grille at the feet of the Virgin of Ujué.

What is the romería of Ujué?

The romería of Ujué is an annual pilgrimage held on the Sunday after the feast of San Marcos, in which pilgrims from more than a dozen Navarra towns walk to Ujué’s sanctuary in black penitential tunics. Its origin is traced to a vow made after a battle near Tafalla in 1043, and press coverage citing regional musicologists describes it as possibly the oldest continuously observed pilgrimage in Europe.

Is Ujué worth visiting?

Ujué is one of Navarra’s best-preserved medieval villages, built around a fortified sanctuary church that still holds the heart of a Navarrese king, with panoramic views toward the Pyrenees and the Ebro valley. It is a genuine working village of under 200 residents rather than a restored tourist set piece, and it is best combined with a visit to nearby Olite as a half-day trip from Pamplona.

Every article on the Encierro blog is authored or reviewed by active bull runners with direct experience in Pamplona.

Dennis Clancey

Founder of Encierro

Dennis Clancey started attending San Fermín in 2007 and is a member of La Única Peña, Pamplona’s original peña. He has instructed more than 4,000 clients on how to run the encierro, possibly more than anyone in the history of the run.

View all articles
Previous Article
Calle Estafeta Didn't Get Its Name Until the 1700s. The Street Had Already Existed for 400 Years.
Next Article
Navarra's Own Tourism Board Calls Them Tapas in English. In Pamplona, Nobody Does.