Ayerbe, from hill to plain
Os Muros Castle stood on San Miguel hill; the medieval borough later grew on a plateau farther south. Between the fortified heights and the open space of the town, Ayerbe’s relief helps trace a change that can still be read in the landscape.
Ayerbe’s square and the town’s houses, with a tree-covered rise in the background. The image places the urban centre in a landscape of hills and plains.
In 1075, a document mentioned “Bancio Ezones de Agirbe.” This is the earliest known reference to the name Ayerbe, but the story that can be followed here begins in a specific place: the fortification of Os Muros, on San Miguel hill. The castle occupied a frontier position and formed part of an Islamic defensive line. From that height, the fortress and its associated small settlement occupied terrain different from that which would later become the centre of the town.
The change was not simply a choice between high and low ground. A fortification needed a protected position; a borough, by contrast, benefited from more spacious, convenient ground for getting around. Ayerbe preserves both landmarks: the castle ruins on the hill and the settlement that developed on the plateau to the south. The relief alone does not explain its inhabitants’ decisions, but it helps show why these locations offered different conditions.
The fortress keeping watch from San Miguel
Os Muros was an Islamic frontier fortification, part of a defensive network that protected territories and cities. Its location on the hill set it apart from the plain and concentrated access along an uphill route. The cobbled path that climbs to the enclosure shows this transition between elevations: to reach the fortress, one had to leave the more open terrain behind and gain height. The remains include two sections of wall and a gate opening in one of them.
The name Ayerbe has also been linked to the shape of the landscape. One study proposes a Vasconic origin for the place name and interprets it as “settlement situated at the foot of a slope.” This is an interpretation of the name, not a geological description, but it is evocative in a place where San Miguel hill rises beside the plain. The fortification and the settlement around it did not stand in an undifferentiated landscape: they occupied the boundary between a rise and lower ground.
In 1083, the Aragonese king Sancho Ramírez conquered Ayerbe and ordered the place to be repopulated. This episode turned the former frontier position into a point in the expansion of the Kingdom of Aragon. The fortress remained a landmark in the territory, while the settlement grew in importance. In early 1118, a large army gathered in Ayerbe, made up of European, Navarrese, Aragonese, Biscayan and Alavese knights, before the conquest of Zaragoza. In the town’s history, the hill was not merely a feature of the landscape: it was a site of strategic importance.
But the heights were not the only possible response to the terrain. Between 1118 and 1122, Alfonso I established a borough on a plateau farther south of the hill. The new location offered flatter, more convenient ground, with space for wide roads along which loaded carts could travel. The contrast between the two places makes a practical tension visible: elevation favoured defence, while the gentler terrain made it easier for a settlement to grow and for people to move around. The founding of the borough does not erase the fortress from the map; it organised Ayerbe around another location.
Fachada de una casa de Ayerbe, con vanos y galería de arcos en la parte superior. La imagen acerca el recorrido al tejido construido de la villa.
The plain and the shape of the terrain
The municipal landscape helps place this transformation in context. Ayerbe lies in an erosional depression carved into Tertiary marly facies, to the left of the Gállego River. An erosional depression is a low-lying area formed by the gradual removal of materials; here, the term describes the setting of the municipality, not a specific cause for the founding of the borough. The municipality includes extensive plains and small isolated hills. In this terrain, the southern plateau and San Miguel hill stand out as distinct locations, close to one another but not equivalent.
Erosion gradually changes the terrain: it removes materials and shapes lower surfaces, while landforms that stand out remain visible in the landscape. In Ayerbe, the geographical description identifies both the depression carved into marly materials and the plains dotted with hills. There is no need to assign a particular origin to each hill to understand the medieval setting: the town had a height suitable for fortification and, farther south, flatter ground on which to establish the borough. The terrain offered different possibilities to those who occupied it.
The municipality’s geotechnical study adds another perspective on this substrate. It classifies 76.26% of its soil categories as “Sandstones, Conglomerates and Flysch”; it also records “Fine sands and silts” (15.12%) and “Compact gravels and sands” (6.13%). These are municipal percentages: they describe the area studied as a whole, not the material used in the walls of Os Muros or the material beneath a particular house. Together with the Tertiary marly facies of the geographical setting, they show that the municipality comprises varied materials. The town was established in a geologically more diverse landscape than the visual pairing of hill and plain might suggest.
Access routes also help reveal the difference between the two locations. The cobbled path climbed to the castle and led to an enclosure bounded by walls; the plain, by contrast, made it possible to lay out wider roads for carts. These are not two versions of the same space, but different responses to different needs. On the hill, the route narrowed as it reached the fortress; on the plateau, more space was available for movement and life in the borough. Geography did not dictate history, but it put two distinct options on the ground.
Two locations, one town
The founding of the borough south of the hill marks the outcome of this episode: Ayerbe expanded its centre of life onto a plateau, while the traces of the fortress that had occupied San Miguel remained. The castle survives as a ruin; the uphill path, sections of wall and gate make it possible to recognise its former enclosure. Below, the town preserves the other choice: more open, more accessible terrain. One height did not need to replace the other entirely: Ayerbe became connected to both.
At first, the hill seemed to sum up the story: a fortress dominating the landscape and preserving the memory of the frontier. Then the plain reveals that the population’s life also depended on having space to build and move around. The marly substrate, the erosional depression and the isolated hills form the physical setting; the fortress and the borough are the human traces that gave shape to its differences. In Ayerbe, climbing San Miguel and returning to the plateau means travelling, in just a few steps, between two medieval ways of inhabiting the terrain.
Do you need a geotechnical study in Ayerbe?
Request a no-obligation quote. We’ll advise you on the type of study you need.
- Studies signed by a licensed geologist
- Compliant with the CTE and Eurocode 7
- Coverage throughout Spain
Más de 1000 estudios realizados
Request a free quote
We can contact you via WhatsApp, phone, or email, whichever you prefer.