News
Al-Buni's Treatise on the Magical Uses of the Ninety-nine Names of God

Ahmad al-Buni

In its own language: أحمد البوني المالكي

A medieval Sufi scholar known for works on letter mysticism and talismans

Historical

Photo: Khalili Collections, CC BY-SA 3.0 igo, via Wikimedia Commons

Ahmad al-Buni was a thirteenth-century mathematician, philosopher, and Sufi master from North Africa who wrote extensively on the esoteric power of letters. He is best known for the Shams al-Ma'arif, a foundational text on talismans and divination in the Islamic world.

Share on WhatsApp

  • Died in 1225 CE
  • Wrote on Ilm al-huruf
  • Constructed magic squares
  • Influenced Yoruba healers
  • Associated with Shams al-Ma'arif

What it is

Ahmad al-Buni was a prominent figure in medieval Islamic scholarship, recognized as a Sufi master, mathematician, and philosopher. His work focused on Ilm al-huruf, the study of the esoteric values of Arabic letters. He also explored sihr, often translated as sorcery, though practitioners preferred terms like Ilm al-hikmah (Knowledge of Wisdom) or Ruhaniyat (Spirituality). His writings established him as a key authority on theurgy and esoteric arts within the Muslim world.

Where it comes from

Born in Buna, located in the Almohad Caliphate, which is now Annaba in Algeria, al-Buni later moved to Ayyubid Egypt. There, he studied under several eminent Sufi masters of his era. He was a contemporary of the famous philosopher Ibn Arabi. While his life remains somewhat obscure, his intellectual output during the early thirteenth century shaped subsequent developments in Islamic occultism and spiritual practice.

How it is done

Al-Buni’s methods involved complex mathematical constructions, particularly magic squares. He demonstrated how to build these grids using a bordering technique, sometimes incorporating letters from the ninety-nine names of God. His texts provided structured rituals for invoking divine powers, utilizing specific letter combinations and talismanic diagrams to achieve spiritual or protective effects.

Tools and materials

The primary tools in al-Buni’s system were letters and numbers. He utilized magic squares and Latin squares as frameworks for spiritual operations. The ninety-nine names of God served as essential components for constructing these squares and for recitation practices. Talismans written with these specific configurations were central to his teachings on protection and divination.

Ahmad al-Buni, drawn and placed

Emblem With the book shape. Drawn from this page, not a photograph.
  1. Living
  2. Revived
  3. Fading
  4. Historical
  5. Legendary
  6. Performed
Standing: Historical Documented in the past; no continuous living tradition today. This says whether people still do it, not whether it works.
A book with a clasp: grimoires, papyri and manuals of rites, and the learned side of magic.
Lineage
Islamic Sufism and Ilm al-Huruf
Where it sits The tradition it belongs to, and when it is done.

What it is for

His works were used for protection, divination, and accessing spiritual power. Practitioners sought to understand the hidden connections between language, mathematics, and the divine. The Shams al-Ma'arif became a reference for those seeking to harness these forces, offering methods for spiritual elevation and safeguarding against harm through established ritual formulas.

Who does it

Al-Buni himself was a scholar and Sufi initiate. His influence extended to various communities, including Yoruba Muslim healers in Nigeria, who still reference his works on traditional healing. His status as a respected master allowed his texts to circulate widely among educated elites.

Peoples and places

While born in Algeria and active in Egypt, his influence spread across the Muslim world. His texts are referenced by scholars and practitioners in Iran, Mali, Niger, and Nigeria. The durability of his work suggests a broad appeal across different regions, adapting to local interpretations while maintaining core principles of letter mysticism and theurgical practice.

At a glance: who, where and when

What people believe

The underlying belief system posits that letters possess inherent spiritual power. By arranging them according to precise mathematical rules, one can align with divine attributes. This approach, known as Ilm al-simiyah, views the universe as structured by sacred geometry and language. Success in these practices depends on correct execution and spiritual purity.

How scholars and sceptics see it

Modern scholars analyze al-Buni’s contributions to the history of science and religion. Denis MacEoin noted potential indirect influences on later movements like Bábism. Researchers examine his role in mapping boundaries between magic and science. His work is studied for its intersection of theology, mathematics, and esoteric philosophy, providing insight into medieval Islamic intellectual culture.

Cautions and what is closed

Authorship of the most famous text attributed to him, the Shams al-Ma'arif, has been questioned by historians. Many manuscripts circulating under his name may be later compilations or simplified excerpts. Scholars caution against assuming all content in these texts originates directly from al-Buni, noting the tendency for later authors to attribute works to established masters.

Compare and confuse

Al-Buni’s work is often compared to other Islamic esoteric traditions focusing on letter mysticism. His emphasis on magic squares parallels broader trends in medieval mathematics and occultism. Unlike purely ceremonial magicians, he integrated rigorous academic training with spiritual practice, distinguishing his approach from folk sorcery.

Questions people ask about Ahmad al-Buni

Who was Ahmad al-Buni?

He was a thirteenth-century Sufi scholar, mathematician, and philosopher from North Africa known for his work on letter mysticism and talismans.

What is his most famous book?

He is associated with the Shams al-Ma'arif, a major text on talismans and divination, though historians debate whether he actually wrote it.

What did he study?

He focused on Ilm al-huruf, the esoteric value of letters, and used mathematics, such as magic squares, to explore spiritual concepts.

Where was he from?

He was born in Buna, in modern-day Algeria, and later lived and studied in Egypt under prominent Sufi masters.

Good reading and sources

Where this page comes from

The facts on this page come from the Wikipedia article "Ahmad al-Buni", written by its contributors and used under the CC BY-SA 4.0 licence, and from its Wikidata record (CC0). EveryJaadu rewrote the text in its own words, with AI assistance, and compares every page with the article to make sure no passage is copied. It may be reused under the same CC BY-SA 4.0 licence with a link back.

It may contain mistakes. Names and customs differ from one community to the next, and some knowledge is closed to outsiders and left out here. This page describes belief and practice. It does not say that any of it works, it is not a how-to, and it is not medical advice. If something is wrong, tell us. Last refreshed 2026-10-05.

Photo credits on this page

The small pictures above come from Wikimedia Commons under free licences. Some are cropped to fit.

The weekly digest

Every Monday: seven entries you may not know, what is on the calendar this week, and one rite drawn step by step.