The borderlands of medieval Islamic Spain produced a distinctive architecture, part fortress, part monastery, part statement of faith, one that perhaps shaped Andalusi identity as much as the palaces of Córdoba or Granada.
The mouth of the Segura River, in what is now the province of Alicante, around 944 CE. On a dune overlooking the Mediterranean, a foundation stone of red sandstone is laid. Its inscription, in classical Arabic, commemorates the construction of a mosque under the caliphate of Abd al-Rahman III, the first ruler in al-Andalus to claim the title of Caliph. This is not the foundation of a city, a palace, or even a fortress in the conventional sense. It is the founding inscription of a ribāṭ, a complex of cells, prayer halls, and courtyards that would be slowly swallowed by the dunes that sheltered it, and would not re-emerge until archaeologists arrived a millennium later.
Guardamar holds a secret its discoverers did not immediately recognise. Rafael Azuar Ruiz, who spent decades excavating the site, came in 2019 to a conclusion that unsettled the standard picture of what a ribat was. Guardamar, he argued, was a centre of popular religiosity, unfortified and far from the frontier of al-Andalus, a place of prayer rather than a garrison or border post. How can a place like that be called a ribat at all? The word derives from the Arabic root
'r-b-ṭ', which connotes both the tethering of cavalry at the frontier and the binding of oneself to God through devotion. The great Maghribi ribats of Monastir and Sousse, the usual reference points for the building type, are heavily fortified enclosures with curtain walls, corner towers, and watchtowers built for coastal surveillance, and Guardamar has none of this.
The ribat was born on the frontier, a fusion of military duty and spiritual practice that defined the early Islamic experience of border warfare. So why does a devotional complex with no walls, sitting nowhere near the border, carry that name at all?
To trace how this happened, we need to follow the frontier from its ideological roots in the early Islamic conquests through to its architectural expression in the coastal ribats, the rural ḥuṣūn (fortified enclosures), and the great alcazabas of Málaga and Almería, which we will be covering in this part. In the second part, we’ll cross the Mediterranean to Monastir and Sousse, where the fortified model survived in stone, and return to the dunes of Guardamar, where archaeology has revealed something the Arabic chronicles never described.
The term ribāṭ carries different meanings depending on period and place, from coastal fortress to spiritual retreat, from garrison post to Sufi lodge. In the early centuries of Islam it held both a military and a devotional charge at once. But the word evolved. By the eighth and ninth centuries, ribat signified not just the tethering of horses but the tethering of the soul, the act of binding oneself to God through ascetic practice at the frontier.
Mikel de Epalza did the most important work disentangling these meanings for the Andalusi context. His 1993 study argued that ribāṭ, rābiṭa, and al-munastir, though often used interchangeably in modern scholarship, designated different architectural and institutional realities. The ribat, in his reading, was the abstract institution of military-spiritual frontier service. The rabita was a small prayer building or oratory cell, what de Epalza called “a small mosque or place of Muslim prayer, where pious Muslims gather for devotional practices, generally under the direction of a master of spirituality.” The al-munastir was a larger monastic complex combining the rabita’s functions with residential and communal facilities.
This distinction explains how Guardamar can be a “ribat” without being a fortress. The institution, devotional frontier service, could take architectural shape as a rabita, an al-munastir, or a fortified enclosure, depending on what the community needed and what threat it faced. At Sousse and Monastir, where the threat was naval raiding by Byzantine and later Norman fleets, the ribat became a fortified enclosure. At Guardamar, where the threat was arguably more spiritual than military, it became an unfortified devotional complex, prayer cells and mosques organised around a sacred axis rather than a defensive courtyard.
That distinction held up when tested against the wider field. An interdisciplinary congress on rábitas at Sant Carles de la Ràpita, held in 1989 and 1997, brought together thirty-three studies and confirmed what de Epalza had argued in 1993. The Andalusi evidence resists the simple equation of “ribat equals fortress” that had dominated earlier Orientalist scholarship (Franco Sánchez & de Epalza, 2004).
The older Orientalist definitions never captured both halves at once. One reading, from 1900, described the ribat as simply “forts built upon the borders of Muslim empires where a garrison of volunteers was defending the territory of Islam against foreigners’ attacks,” which gets the military function right but misses the spiritual dimension entirely (Doutté, 1900). A second, equally old definition went the other way, framing ribat as devoting one’s soul assiduously to God’s service. Neither one alone accounts for the range of architectural forms the institution produced.
The architectural definition has to come from comparing surviving examples rather than assuming a single model. The Maghribi ribats provide the standard type, a square or rectangular walled enclosure with round corner towers, a central courtyard with a cistern, cells along the interior walls, a prayer hall, and a watchtower for coastal surveillance. Whereas Guardamar complicates that picture, suggesting ribat is best understood as an institution whose architectural expression varied with circumstance rather than a fixed building type.
Northern Sharq al-Andalus, the eastern peninsula, shows the institution taking shape as early as the ninth century. There are three things supporting this early dating, documented individuals and groups voluntarily involved in frontier defence, a construction programme of fortified coastal enclosures, and the founding of the Ribat Kashki, mentioned by the jurist Abd al-Malik ibn Habib (d. 853), which sets a terminus ante quem in the first half of the ninth century (Negre, 2024). The eastern coast, then, had an established institution within a century and a half of the conquest, and its architectural forms were already varied by that point.
To understand the ribat, we need to understand the frontier that produced it. The Arabic term thughūr (singular thaghr, “opening” or “fissure”) named the frontier zones of the Islamic world. It originated on the Arab-Byzantine frontier in Cilicia and northern Syria, where a two-tier system developed under the Abbasids, front-line fortresses called thughur, and rear-line strongholds called al-ʿawāṣim, “the protectresses.” Arab geographers built a sophisticated vocabulary around this system, one that was military, administrative, and ideological all at once.
In al-Andalus the term applied analogically to the border with the Christian kingdoms of the north. The Umayyad Emirate established three marches: the Lower March (al-Thaghr al-Adnā) based at Mérida, the Middle March (al-Thaghr al-Awsaṭ) based at Toledo and later Medinaceli, and the Upper March (al-Thaghr al-Aʿlā) based at Zaragoza. These were zones of fluctuating control, where Muslim authority thinned with distance from Córdoba and local strongmen, Arab aristocrats, Berber chieftains, or muwallad converts, held a degree of autonomy the central government could never fully suppress.
Eduardo Manzano Moreno’s foundational study, La frontera de al-Andalus en época de los Omeyas (CSIC, 1991), showed that Umayyad caliphal policy shifted decisively after the defeats of the late 930s, particularly Simancas/Alhándega in 939, when a large Muslim army was ambushed by Leonese forces. Afterward the caliphs began delegating frontier defence to aristocratic families who controlled border enclaves with real autonomy, while directly fortifying strategic points like Medinaceli where no such families existed. Manzano Moreno reads the frontier not as a static defensive line but as a system of alliances, patronage, and military entrepreneurship, a border society whose loyalties were negotiated rather than assumed.
Philippe Sénac’s work on the Upper March shows that the husun (plural for hisn) of the Ebro valley, sometimes spaced as close as fifteen kilometres apart, guarded communication routes and approaches to urban centres rather than forming a continuous fortified line. Sénac cites the tenth-century historian Ibn Ḥayyān’s phrase “the collar of Saragossa” (tawq Saraqustah) to make the point that no linear frontier existed, either on the ground or in the minds of the people who lived there. It was a zone, defined by the reach of garrisons and the loyalty of local communities, not a surveyed boundary.
The basic unit of this frontier was the ḥiṣn, a fortified enclosure that functioned as a community refuge rather than a “feudal” castle in the European sense. It was not a lordly residence but a communal fortification, a place where rural populations could take refuge in times of danger, where 'the function of command exists, at least in certain cases, but does not seem predominant' (Bazzana, Cressier, & Guichard, 1988). In many southeastern contexts the evidence points less to lordly castles than to communal fortified refuges, places where people sheltered rather than strongholds from which lords dominated the countryside.
This hisn-refuge model generalised across the western Mediterranean in the early Islamic period, producing a landscape of hilltop refuges closer to the refugia of late antiquity than to high medieval European castles (Acién Almansa, 1989).
The typological hierarchy of the Andalusi frontier ran from the thaghr, the march, down through the hisn, the fortified enclosure, to the burj, the watchtower. Each responded to a different mix of threats and functions, but all combined military and residential elements in a way that set the Islamic frontier apart from its Christian counterpart.
The frontier wasn’t only terrestrial, as the Mediterranean coast was vulnerable to Byzantine and later Norman naval raids, and a chain of coastal watchtowers and fortified ports mirrored the inland system. Almería, whose name derives from al-mariyya, “the watchtower,” is the clearest example of a port city built as a frontier fortress. The Nasrid kingdom of Granada (1232–1492), the last Muslim state on the peninsula, maintained an extensive network of watchtowers along its southeastern border to keep visual contact with the Alhambra citadel. A 2017 photogrammetric survey documented the signalling system in detail, warnings sent by fire at night and smoke by day (Jaramillo, García-Pulido, & Dorado, 2017).
The frontier, then, was physical, administrative, and ideological at once. Umayyad and Almohad rulers made these boundaries clear not just through fortification but through ideological and administrative acts that defined who counted as inside and outside (Christys & Fierro, 2024). The thaghr handled administration, the hisn offered physical refuge, and the ribat carried the weight of faith.
Guardamar’s ribat was discovered in the late nineteenth century by a forestry engineer named Francisco Mira Botella, who was overseeing a dune reforestation project when stone structures began emerging from the sand. Among the finds was a foundation inscription in classical Arabic, the first material evidence of a ribat on the Iberian Peninsula. It would be nearly a century before systematic excavation began.
Between 1984 and 1992, Rafael Azuar Ruiz of the Archaeological Museum of Alicante directed excavations that uncovered roughly two-thirds of the complex. Azuar’s first announcement in 1985 was cautious, calling it “a possible rábita of the caliphal period,” but the following decades of excavation confirmed the identification.
What the excavations found was unlike anything known from the Maghribi ribats. The complex is three parallel building blocks organised around a sacred area rather than a defensive courtyard, as at Sousse or Monastir. The sacred core has four commemorative mosques, one bearing the 944 CE foundation inscription, facing a great communal mosque built over the qibla wall of an earlier musalla, an open-air prayer space that predates the caliphal complex. A reception area for pilgrims, four rooms alternating with two prayer cells each with its own mihrab, gives access to this cultic centre. Along two main streets, excavators found twenty-three prayer cells, small rectangular spaces no more than eight metres long and three wide, each with a doorway and a qibla wall facing Mecca, each with its own mihrab.
That points to a community of real size, a substantial settlement of murabitun living in individual cells that combined private devotion with communal worship in the great mosque.
Ceramic finds confirm a caliphal chronology, as the ribat operated from roughly 944 CE until the early eleventh century, when it was abandoned, possibly after an earthquake, though the exact cause isn’t certain. Beneath the caliphal complex is evidence of an earlier ribatfrom the late ninth or early tenth century, meaning the site had already been a place of devotional settlement for at least a generation before the caliphal building went up. Sonia Gutiérrez Lloret’s chapter “El ribat antes del ribat” looks at this earlier phase and traces the shift from late antique to early Islamic settlement patterns in the lower Segura valley.
Azuar’s 2019 reappraisal is what gives Guardamar its theoretical weight. He argued that the site should be understood as a centre of popular religiosity, unfortified and away from the border, explicitly rejecting the military-defensive reading that had shaped earlier scholarship, including some of his own (Azuar Ruiz, Cuadernos de arquitectura y fortificación 6, 2019: 127–137). The implication matters, as in al-Andalus, a ribat could function primarily as a religious institution, a pilgrimage centre and devotional retreat, detached entirely from the frontier it was named for.
This lines up with de Epalza’s distinction between ribat as institution and rabita as architectural form. At Guardamar the institution held even though the architecture never did, as the community of murabitun kept their prayers and their orientation toward Mecca among prayer cells and a mosque rather than behind a fortress wall. The frontier ideology had been transplanted to a place with no frontier, where it took the form of popular religiosity rather than military deployment.
The epigraphic record backs this up. The 944–945 CE foundation inscription is the single most important find, but it’s not the only one. Visitors and residents left graffiti on the walls, simple devotional texts in which they called their own community “rábitas,” confirming the inhabitants understood their identity through this institution (Barceló Torres, “Los escritos árabes de la Rábita de Guardamar,” in Azuar 2004; Rubiera, “La Rábita de Guardamar,” Locus Amoenus 7, 2003). A broader study of inscriptions from Guardamar and the Portuguese site of Arrifana documents both foundational and funerary epigraphy along with roughly twenty graffiti texts, analysing named individuals, dates, and their place in rural spiritual life.
Mónica Rius’s study of the qibla orientations at Guardamar turns up a striking detail. The twenty-three oratories point toward a general southern direction, what medieval Muslim astronomers called a jiha (approximate direction) rather than a samt (exact azimuth), with variations of up to forty degrees between the different miḥrābs, ranging roughly from 144° to 185°. Compare that to the great aljama of Córdoba, oriented at about 152° using precise astronomical methods. Rius describes the Guardamar orientations as showing little interest in precision. The community simply set a general southern jiha, and each oratory approximated it on its own. This variability, she writes, “disorients whoever wants to penetrate its mystery,” which suggests a community for whom the act of prayer mattered more than its exact calibration (Rius, in Azuar 2004).
The material culture at Guardamar is domestic. Oil lamps, kettles, jars, portable stoves, plates, glass vials, the ordinary dinnerware of everyday life, not the specialised equipment of a military garrison. Many pieces were found complete and in situ, which points to a sudden abandonment rather than a gradual dismantling. Rosary beads made from clay pellets or fish bones are physical evidence of personal devotional practice, the tactile side of prayer that the architecture alone can’t convey. Environmental analysis of flora, fauna, and shellfish remains let researchers reconstruct the tenth-century estuary landscape at the river mouth, showing a community that drew on its surroundings for food and materials (Azuar, 2004).
Prayer cells, rosary beads, cooking pots, foundation inscriptions, and graffiti survive from people whose names were not written down in the books of history. This ribat was a community of faith living at the edge of the sea, praying in cells the wind would eventually bury.
The ribat was only one part of an architectural picture that changed across five centuries of Andalusi frontier life. As the frontier moved, south with the Christian reconquest, north again with Almoravid and Almohad counter-offensives, the architecture of the border adapted, producing typologies that combined defensive, residential, and administrative functions in ways the Maghribi ribat tradition never needed to.
The alcazaba, from Arabic al-qaṣba, "citadel" or "urban fortress," represents frontier architecture at its most developed. Unlike the ribat, which could be devotional and unfortified, or the ḥiṣn, which mainly served as a communal refuge, the alcazaba was a seat of power. It housed the governor and the garrison and ran the administrative core of the city. It functioned as a palace inside a fortress, and its architecture reflected that double role.
The Alcazaba of Málaga sits on a hill leading up to the Gibralfaro castle, its irregular plan of roughly 14,200 square metres (7,000 built) following the slope of the site. Sources place a fortress here as early as the eighth century, though the surviving fabric mostly dates to the Hammudid Taifa period of the early eleventh century, when Málaga became the seat of a caliphal claimant and the Alcazaba took on a palace-residence role. The eighth-century claim rests on later sources, al-Himyari and the fourteenth-century historian al-Nubahi, who report that a Syrian traditionist, Muawiya b. Salih al-Himsi, arrived around 123/740 and founded a mosque in the lower Alcazaba. Martínez Enamorado has shown that these sources come long after the events they describe, cite no authorities of their own, and aren’t corroborated by any near-contemporary Andalusi historian, which makes the eighth-century claim plausible but unverified (Martínez Enamorado, “Datos sobre una mezquita en la Alcazaba de Málaga,” Miscelánea de estudios árabes y hebraicos 40, 1991: 205–219). A triple arcade with alfiz, the rectangular frame around an arch that became a signature of Andalusi architectural vocabulary, survives from this period along with the first keep, rare surviving evidence of Taifa-era palatial building in al-Andalus. Under the Nasrids the Alcazaba was expanded further with entrance fortifications, a lower fortress, and defensive walls, reflecting Málaga’s role as a key port and frontier city of the Kingdom of Granada.
The Alcazaba of Almería, founded by Abd al-Rahman III in 955 CE when he raised al-Mariyya to the status of madīna, is the second-largest Muslim fortress in Spain after the Alhambra. Its walls run roughly 1,430 metres and enclose three distinct zones.
The lowest enclosure was a military camp and civilian refuge, with large cisterns cut into the rock to guarantee water during sieges. The second, the palatial and administrative core, held the governor’s residence, a mosque, baths, and houses, a small city inside the walls. The third, at the highest point, is a Christian castle built by the Catholic Monarchs after 1489, its semicircular artillery towers and moat marking a sharp break from the Islamic fabric below. This layering of Christian military architecture over an Islamic citadel is itself a record of the frontier’s history, the conquerors building on top rather than starting over, using the same stone with a different grammar.
Under the Taifa period Almería became a major silk port, and the Alcazaba housed the palaces of Taifa rulers, most notably al-Muʿtasim (r. 1051–1091), a poet-king whose patronage gave the court a reputation for refinement that sat oddly alongside its military role. It was fortress and cultural centre at once, defensive architecture overlaid with palatial luxury.
Alfonso VII of León-Castile took the city in 1147 with Genoese and Pisan naval support, after Genoese siege engines brought down sixteen metres of the city wall. The city fell on the 17th of October. The citadel surrendered four days later, its garrison paying a ransom to spare their lives. The occupation lasted a decade before the Almohads retook the city in 1157 and had to carry out extensive repairs to the fortifications damaged in the siege.
At hisn Bayrān in Gandia, Valencia, the construction sequence shows the same evolution in miniature: a proto-urban fortress built through a mix of planning and improvisation as husun grew from simple refuges into more complex administrative centres (Palmer Broch, Negre Pérez, & García-Borja, 2023).
The move from ribat to alcazaba isn’t a straight line so much as a spread of frontier types:
the ribat, devotional, coastal or rural.
the hisn, a communal refuge.
the burj, a watchtower.
the alcazaba, an urban fortress-palace within a walled city.
Each answers to a different combination of threat, function, and social setting, and all combine military, residential, and religious elements in the way that marks the Islamic frontier as distinct from its Christian counterpart.
This is all for part 1, in the next part we’ll take a look across the Mediterranean, at Ribats of the Maghrib (North Africa), particularly Monastir and Sousse in Tunisia.
These are not just abstract ideas to me.
They are part of how I see the world. They shape the way I think about space, pace, and what makes a home feel like it remembers something deeper.
They are what guided the process behind something I made for others who feel the same way.
This is a 56-page visual and written guide on Moorish design for modern spaces.
It includes:
Core design principles rooted in Moorish-Andalusian tradition
Practical suggestions and layout ideas
Visual references and moodboards
A calm, intentional approach to creating beauty through atmosphere and meaning
The guide is for those who want more than just style. It is for people who are seeking feeling, presence, and a quiet elegance in their spaces.
You can find it here: https://ahmednaseem.gumroad.com/l/neo-moorish-home
Thank you for reading.
Whether you come for the ideas, or the quiet philosophy behind it all, I’m truly grateful.
Until next Friday,
The Andalusian Edit

Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.