# Ribat

A ribāṭ (Arabic: رِبَـاط; hospice, hostel, base or retreat) is an Arabic term, initially designating a small fortification built along a frontier during the first years of the Muslim conquest of the Maghreb to house military volunteers, called murabitun, and shortly after they also appeared along the Byzantine frontier, where they attracted converts from Greater Khorasan, an area that would become known as al-ʻAwāṣim in the ninth century CE.
The ribat fortifications later served to protect commercial routes, as caravanserais, and as centers for isolated Muslim communities as well as serving as places of piety.

## Islamic meaning
### Historical meaning

The word ribat in its abstract refers to voluntary defense of Islam, which is why ribats were originally used to house those who fought to defend Islam in jihad. They can also be referred to by other names such as khanqah, most commonly used in Iran, and tekke, most commonly used in Turkey.
Classically, ribat referred to the guard duty at a frontier outpost in order to defend dar al-Islam. The one who performs ribat is called a murabit.

### Contemporary use

Contemporary use of the term ribat is common among jihadi groups such as al-Qaeda or the Islamic State of Iraq and the Levant. The term has also been used by Salafi-Jihadis operating in the Gaza Strip. In their terminology, ʻArḍ al-Ribat "Land of the Ribat" is a name for Palestine, with the literal meaning of "the land of standing vigilant watch on the frontier", understood in the context of their ideology of global jihad, which is fundamentally opposed to Palestinian nationalism.

## As caravanserais

In time, some ribats became hostels for voyagers on major trade routes (caravanserai).

## As Sufi retreats
### Sufi brotherhoods

Ribat was initially used to describe a frontier post where soldiers would stay during the early Muslim conquests and after, such as in al-Awasim. The term transformed over time to refer to a center for Sufi. As they were later no longer needed to house and supply soldiers, ribats became refuges for mystics. The ribat tradition was perhaps one of the early sources of the ṭarīqas, or Sufi mystic brotherhoods, and a type of the later zawiya or Sufi lodge, which spread into North Africa, and from there across the Sahara to West Africa. Here, they are the homes of marabouts: religious teachers, usually Sufis. Such places of spiritual retreat were termed khānqāhs (Persian: خانقاه). Usually, ribats were inhabited by a shaykh, and his family and visitors were allowed to come and learn from him. Many times, the tomb of the founder was also located in the same building. These centers' institutionalization was made possible partly through donations from wealthy merchants, landowners, and influential leaders. Some of these compounds also received regular stipends to maintain them.
Some important ribats to mention are the Rabati Malik (c.1068–80), which is in Uzbekistan in the Kyzylkum Desert and is still partially intact, and the Ribat of Sharaf from the 12th century, which was built in a square shape with a monumental portal, a courtyard, and long vaulted rooms along the walls. Most ribats had a similar architectural appearance which consisted of a surrounding wall with an entrance, living rooms, storehouses for provisions, a watch tower used to signal in the case of an invasion, four to eight towers, and a mosque in large ribats.
These institutions were used as a sort of school house where a shaykh could teach his disciples the ways of a specific ṭarīqa. They were also used as a place of worship where the shaykh could observe the members of the specific Sufi order and help them on their inner path to ḥaqīqa (Arabic: حَـقِـيْـقَـة, ultimate truth or reality).

### Female Sufis

Another use of ribat refers to a sort of convent or retreat house for Sufi women. Female shaykhas (شيخة), scholars of law in medieval times, and large numbers of widows or divorcees lived in abstinence and worship in ribats.