Historia geológica Locality Alfajarín

Alfajarín, the crags guarding the Ebro

Alfajarín Castle occupies a rocky spur above the banks of the Ebro, with the village at the foot of the crags. The shape of the terrain helps explain why the fortress and the town remained connected for centuries.

Alfajarín seen from the castle: the village stretches below the crags towards the low-lying riverside land.

Alfajarín seen from the castle: the village stretches below the crags towards the low-lying riverside land.

Photo: Ecelan, CC BY-SA 3.0 — commons.wikimedia.org

Alfajarín Castle rises north of the village, on a rocky spur overlooking the banks of the Ebro. From there, the houses spread across the lower ground; today, the A-2 motorway runs between them. The fortress was not built just anywhere: natural cliffs defended much of its perimeter, and the river was part of the landscape it was meant to watch over. The crag offered height and protection, but also imposed limits on those who built upon it. This relationship between terrain and defence made the castle a landmark in the development of the town.

The two crags of Alfajarín

One interpretation of the name Alfajarín links it to the idea of “the two crags.” The image fits two nearby rises: the castle stands on one, and the Sanctuary of the Virgen de la Peña stands on the other, beside it. The sanctuary dates from the 16th century, and both buildings preserve Andalusi remains. The two heights need not be identical for their arrangement to make sense: together, they dominate the edge of the settlement and stand out above the terrain descending towards the Ebro.

The municipality encompasses very different landscapes on either side of the motorway. To the north stretch the Montes de Alfajarín, with their irregular, mountainous terrain; to the south lies the lower, flatter agricultural area along the riverbanks. The village is 199 metres above sea level, while the southern part of the municipality lies below 200 metres. This contrast helps locate the castle crag: it is not an isolated mountain, but a rise within a town spread between rugged terrain and riverside land.

A substrate of river deposits, sands and gypsum

Alfajarín stands on Quaternary deposits of the Ebro. A deposit is material accumulated in the ground; here, the geographical description links these materials to the river. In the municipality, the geotechnical study records fine sands and silts, gravels and compact sands, as well as gypsum, anhydrite and salts, among other groups. These are specific names for a varied subsurface, not a single uniform layer. The information describes the municipality; on its own, it cannot identify the material beneath the castle or what its masonry is made of.

The differences between these materials matter because each forms part of a landscape with its own characteristics. The study notes gypsum formations with moderate karstification and areas where present-day or potential karst subsidence may occur. In gypsum, water can dissolve the rock and create cavities; if the ground loses support, the surface may sink. The study also notes possible movements in rock formations, mainly rockfalls. These are processes identified at the municipal scale: on their own, they do not explain the shape of the castle spur or indicate that a specific subsidence event has occurred there.

The spur becomes a fortress

On this rise, medieval builders found a useful site for a defensive fortress and lookout over the banks of the Ebro. The castle is believed to have been built between the 10th and 11th centuries. Its irregular ground plan approximates a pentagon and takes advantage of the rocky spur. Rather than surrounding it with identical defences on every side, the fortification relied on the natural cliffs, except on the north and east sides, where a moat was dug to protect the entrance.

The entrance concentrated the defences: a drawbridge led to an entrance protected by two towers. This arrangement made the terrain an ally while also requiring the most accessible points to be reinforced. The castle is not simply a structure placed on a crag; its form responds to the difference between naturally steep edges and the sides where an obstacle had to be created. The rock raised the enclosure above the surrounding land. The moat, bridge and towers completed a defence that the terrain alone could not provide around the entire perimeter.

The fortress passed through changes of power. After the occupation of Zaragoza by Alfonso I at Christmas 1118, the castle passed into Christian hands; after the Battle of Fraga and the king’s death in 1134, it returned to Almoravid rule, and in 1141 it was reconquered, according to the castle’s chronology. Amid these disputes, the rise that served to watch over the riverbanks remained a valuable position. The terrain did not decide who controlled Alfajarín, but it did offer each power a fortress from which to defend and observe the surrounding area.

Muros y torre del castillo de Alfajarín sobre el espolón rocoso. La fortaleza aprovechó los acantilados naturales y reforzó los lados más accesibles.

Muros y torre del castillo de Alfajarín sobre el espolón rocoso. La fortaleza aprovechó los acantilados naturales y reforzó los lados más accesibles.

Foto: Ecelan, CC BY-SA 3.0 — commons.wikimedia.org

The Cornel family strengthens the town

Over time, the castle ceased to be merely a contested stronghold and became part of the seigneurial domain of Alfajarín. The town was under royal domain—that is, it belonged to the king—until 1293, when James II granted the lordship to Pedro Cornel. The Cornel family held it for generations and undertook the fortification of the town and the renovation of the castle. Defence, then, was not limited to maintaining a position on high ground: it also involved strengthening the settlement that lived under its protection.

The terrain helps us understand this relationship without turning it into a single, all-encompassing explanation. According to local history, the urban centre developed under the castle’s protection, while the fortress occupied the spur, separated from the village by the terrain and, today, by the motorway. At the castle, the natural cliffs provided part of the defence; on the exposed sides, human-made works added a moat, bridge and towers. The community and the crag were not separate elements: the height protected the town, and the town gave purpose to the watch kept from that height.

Seigneurial control changed hands. In 1437, the Barony ceased to belong to the Cornel family and passed to Juan de Mur; in 1496 it went to Ramón de Espés, whose family retained the domain until the Barony disappeared in the 19th century. In the town, the history of this authority was bound up with disputes over land and levies. The castle and its surroundings remained the physical setting for a relationship that was not solely military: power over the territory also encompassed the resources and obligations of its inhabitants.

From barony to municipality

Between 1820 and 1830, several rebellions against the lords took place. Following the death of María del Rosario Wall, the last territorial lady, the Barony disappeared and Alfajarín became an independent municipality within the jurisdiction of Zaragoza. This was the outcome of a long history of seigneurial control: the town ceased to depend on the family that had governed the territory. The castle, however, did not disappear with the Barony. Its silhouette remained above the crag, with walls and towers that preserve traces of its defensive function and the renovations carried out over time.

Another remnant that connects the village with its former defences also survives: the Portaza, at the western end. It was a fortified gate and an exit towards Zaragoza, and is the only surviving remnant of the town’s medieval walls. At the other end of the material history, construction of the Zaragoza–Barcelona motorway brought to light the remains of a Roman villa that was destroyed; the head of a sculpture in a provincial style was recovered. The road changed the landscape and exposed traces of the past, although it did not preserve them in their entirety.

Today, the castle and the Virgen de la Peña still occupy their two rises; below, Alfajarín opens out towards the riverbanks and lower-lying land. The town no longer lives under the lordship of the Cornel family or depends on the Barony, but the relationship between the crags and the village remains visible. The spur that offered height and defence continues to shape the local skyline: the rock did not rule Alfajarín, but it helped determine where its fortress was built and how its history was told.

Ground types in Alfajarín

Characteristic soils in the area, ordered by relevance.

  • Yesos, Anhidrita y Sales
    Hazard

    Gypsum, Anhydrite and Salts

    Chemically formed sedimentary rocks produced by the precipitation of minerals dissolved in closed basins. Gypsum predominates (calcium sulphate) and, to a lesser extent, anhydrite and salts (halite).

    View details
  • Arenas finas y limos
    Hazard

    Fine sands and silts

    Fine to very fine granular soils with medium to loose compacity. Typical of floodplains and coastlines. Although they can support light buildings, they are treacherous soils linked to water processes:

    View details
  • Gravas y Arenas compactas
    Neutral

    Compact gravels and sands

    High-compacity granular deposits, typically associated with old fluvial terraces (Ebro, Duero, Tajo, Guadalquivir rivers) and Pleistocene glacis. They have no cohesion (they are not clays) but their a

    View details
  • Masa de agua
    Hazard

    Water mass

    Area corresponding to rivers, lakes, reservoirs, lagoons, permanent marshes or submerged coastal strips. The point consulted lies on a body of water identified cartographically by the IGME in its geol

    View details
Geotechnical study

Do you need a geotechnical study in Alfajarín?

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
4,9 / 5

Más de 1000 estudios realizados

Request a free quote

Just one more little step...

We can contact you via WhatsApp, phone, or email, whichever you prefer.