Ribats
Ribats, from the Arabic ribāṭ, are fortified frontier outposts and religious-military establishments that developed across the Islamic world, especially from the 7th to the 12th centuries. They served dual purposes: military garrisons guarding frontiers or important routes, and religious lodges where ascetic communities—often linked to Sufi orders—lived, trained, and provided hospitality.
Geography and function varied by region. In the Maghreb and Al-Andalus (Iberian Peninsula), ribats lined frontiers
Architecture of ribats typically featured thick defensive walls, towers, gatehouses, and water cisterns, with living quarters
Decline and legacy followed the rise of centralized states and changes in military organization, after which
Notable examples include early ribats at Sousse and Monastir in Tunisia, among the best-preserved Maghreb sites