The history of Sufism in the desert city of Sijilmasa during the Almoravid and Almohad eras is an important aspect of the religious history of medieval Morocco. It is a key component of Morocco’s religious identity and the identity of its elite, and incorporates two rich medieval historical experiences. The subject also draws significance from the importance of the city of Sijilmasa as a political, religious and economic hub during the Middle Ages. The study builds primarily on hagiographic material, within a prosopographic methodological framework, to research the geographical, ethnic and social origins of the ṣulaḥāʾ (righteous ones) of Sijilmasa, their Sufi marjaʿiyya (religious authorities and the sources of their beliefs) and their field of spiritual influence. It then examines the nature of their relationship with society and the authorities, studying the group’s internal dynamics and the extent to which it was unified in character, and highlighting the similarities and distinctions between its members.