Home/Systems/Khatt al-Raml
Khatt al-Raml
Islamic1 $TIAN per call/trpc/khatt/calculate

Khatt al-Raml沙地占卜

The North African science of sand divination

Overview

Khatt al-Raml (خط الرمل, literally 'lines in the sand') is the North African and Maghrebi variant of Islamic geomancy, closely related to Rammal but with distinct regional traditions, interpretive frameworks, and ritual practices developed across Morocco, Algeria, Tunisia, Libya, and Egypt over more than a millennium. While Rammal refers broadly to the pan-Islamic geomantic tradition, Khatt al-Raml specifically denotes the sand-drawing practice as it evolved in the Maghreb — where it absorbed Amazigh (Berber), sub-Saharan African, and Andalusian influences to produce a uniquely syncretic system. The practitioner (faqih or khattab) draws rapid lines of dots in sand, earth, or on paper, then counts the dots in each row to produce a binary odd/even pattern. Four such figures are generated, and these are combined through a precise mathematical procedure to produce a shield chart of 16 geomantic figures (ashkal), each with a name, planetary ruler, elemental association, and divinatory meaning. Khatt al-Raml is widely practised across North Africa today, both as a folk divination tradition and as a formal scholarly discipline taught in Sufi zawiya schools.

Origin

Khatt al-Raml developed in the Maghreb from the 9th century CE onwards, as Arabic geomantic texts from the Abbasid Caliphate spread westward along trade and pilgrimage routes. The system absorbed pre-Islamic Amazigh divination practices — including dot-and-line oracles used by Berber communities — and was further enriched by the influx of Andalusian scholars after the fall of al-Andalus (1492). The great Moroccan scholar Ibn Khaldun (1332–1406) devoted an entire chapter of his Muqaddimah to geomancy, describing Khatt al-Raml as a legitimate intellectual discipline and documenting its mathematical structure in detail. By the 14th century, Khatt al-Raml had become deeply embedded in Moroccan and Algerian Sufi traditions, where it was used for spiritual guidance, healing, and the resolution of legal disputes.

History

The history of Khatt al-Raml is inseparable from the history of Islamic scholarship in North Africa. During the Almoravid (1040–1147) and Almohad (1121–1269) dynasties, geomantic knowledge was systematised and transmitted through Sufi networks. The Tlemcen school of geomancy in western Algeria became particularly influential, producing commentaries and treatises that shaped the practice across the Maghreb. In the 16th–18th centuries, Khatt al-Raml spread southward into the Sahara and West Africa through trans-Saharan trade routes, where it merged with local African divination traditions — including Ifá and Fa — to produce hybrid systems. Colonial disruption in the 19th–20th centuries suppressed formal geomantic education, but the practice survived in oral tradition and in Sufi lodges. Today, Khatt al-Raml is experiencing a revival, with practitioners in Morocco, Algeria, and the diaspora communities of France and Spain.

How It Works

A Khatt al-Raml reading begins with the practitioner entering a state of focused intention (niyya) and drawing four rows of random dots in sand or on paper. Each row is counted: an odd number of dots produces a single dot, an even number produces two dots. This generates four binary figures, each consisting of four rows. The four mother figures (ummahat) are then combined through a precise mathematical procedure to produce daughter figures (banat), nieces (khadam), two witnesses (shahidayn), and finally the judge (qadi) — the central interpretive figure. The judge and witnesses are interpreted in relation to the querent's question, the planetary rulers of each figure, and the house (bayt) positions of the shield chart.

Good For

01Questions about travel and journeys
02Business and financial decisions
03Marriage and relationship compatibility
04Health and healing guidance
05Legal disputes and negotiations
06Lost items and missing persons
07Spiritual and religious guidance
08Timing of important life events

Use Cases

Travel Safety

Khatt al-Raml has long been consulted before journeys across the Sahara and Mediterranean. The judge figure reveals whether the journey will be safe and successful, and the house positions indicate potential obstacles or auspicious routes.

Marriage Compatibility

In North African tradition, Khatt al-Raml is consulted before marriage negotiations. The shield chart reveals the compatibility of the couple, the prospects for children, and the long-term trajectory of the union.

Business Decisions

Merchants and traders across the Maghreb have traditionally consulted the faqih before major commercial decisions. The geomantic chart reveals whether a proposed venture is favoured by the cosmic configuration.

Spiritual Guidance

In the Sufi tradition, Khatt al-Raml is used as a tool for spiritual discernment — helping the seeker understand the divine will in relation to a specific question or life challenge.

Famous Examples

Ibn Khaldun14th-century Maghrebi historian and polymath

Ibn Khaldun devoted an entire chapter of his Muqaddimah (1377 CE) to geomancy, providing the most detailed medieval account of Khatt al-Raml's mathematical structure and interpretive principles. His analysis remains a foundational reference for the tradition.

Ahmad al-Buni13th-century Algerian Sufi scholar

Ahmad al-Buni (died c. 1225 CE) was the most influential Islamic occultist of the medieval period. His encyclopaedic work Shams al-Ma'arif synthesised geomancy, letter mysticism, and Sufi cosmology, establishing the theoretical framework that shaped Khatt al-Raml for centuries.

Leo Africanus16th-century Moroccan diplomat and geographer

Leo Africanus (al-Hasan ibn Muhammad al-Wazzan al-Fasi) documented the practice of Khatt al-Raml in his Description of Africa (1526), noting its widespread use among scholars, merchants, and ordinary people across North Africa and the Sahel.

Key Terms

Ashkal (أشكال)The 16 geomantic figures of Khatt al-Raml, each composed of four rows of one or two dots. Each figure has a name, a planetary ruler, an elemental association, and a divinatory meaning.
Ummahat (أمهات)The four mother figures — the primary geomantic figures generated directly from the random dot-drawing process. They represent the initial energetic state of the question.
Banat (بنات)The four daughter figures — derived from the mothers by transposing their rows. They represent the response or consequence of the initial state.
Qadi (قاضي)The judge — the final figure produced by combining the two witnesses. The qadi provides the overall verdict or answer to the querent's question.
Darb al-Raml (ضرب الرمل)The shield chart — the full 16-figure layout used in a complete Khatt al-Raml reading, revealing the dynamic interplay of forces surrounding the question.
Faqih (فقيه)A learned practitioner of Khatt al-Raml — literally 'one who understands'. In the Maghrebi tradition, the faqih combines geomantic knowledge with Quranic scholarship, herbal medicine, and spiritual counselling.

API Integration

The askTIAN Khatt al-Raml API generates a complete shield chart from a random or seeded dot-drawing process, returns all 16 geomantic figures with their names, planetary rulers, elemental associations, and divinatory meanings, interprets the judge and witnesses in relation to the querent's question, and returns a fortune score from 0 to 100 with domain-specific guidance.

Related Systems