The 13th-Century Magic Book That Got Its Author Banned and Burned

There is a book so feared by religious authorities across seven centuries that it was banned by caliphates, burned in public squares, suppressed by the Egyptian government as recently as the twentieth century, and yet never — not once — successfully eradicated. Scholars who owned it risked flogging. Printers who published it faced arrest. And still the manuscripts multiplied in secret, copied by candlelight in Sufi lodges from Fez to Delhi. The book is Shams al-Ma’arif al-Kubra — “The Great Sun of Gnosis” — and its author, Ahmad ibn Ali al-Buni, may have been the most dangerous intellectual in medieval Islamic history.


Who Was Ahmad al-Buni?

The historical record on al-Buni is frustratingly thin, which is itself a kind of testimony to how threatening the authorities found him. What is established: Ahmad ibn Ali al-Buni was a Sufi scholar from Buna (modern Annaba, Algeria) who lived and worked primarily in Cairo, dying around 1225 CE — the same generation as Ibn Arabi, the great Andalusian mystic, with whom al-Buni shares certain cosmological preoccupations.

Al-Buni held a position squarely within orthodox Islamic learning. He was not a fringe figure or a village sorcerer. He was a trained jurist, a Sufi initiate, and a scholar of the Quran. This is what made him so dangerous: he wrote from inside the tradition. His books are dense with Quranic citations, prophetic hadith, and the philosophical vocabulary of classical Islamic theology. He was not arguing against Islam. He was arguing that Islam contained, within its own scriptural core, a complete and operational science of the unseen world.

That claim — made systematically, in Arabic, with Quranic proof-texts — was exactly what made the authorities furious.


What Shams al-Ma’arif Actually Taught

The Shams al-Ma’arif al-Kubra is not a single book in the modern sense. It exists in multiple recensions of varying length, the longest running to four substantial volumes in manuscript form. The core text, sometimes called the Shams al-Saghira (“Lesser Sun”), may reflect an earlier composition that was expanded by later editors — a common fate for celebrated medieval Arabic texts. Modern scholars, including Liana Saif in her research on al-Buni’s reception, have noted the difficulties of establishing a definitive text from the surviving manuscript tradition.

What is consistent across versions: Shams al-Ma’arif is primarily a systematic treatise on the occult properties of letters, names, and numbers. Al-Buni’s foundational claim is that the Arabic alphabet is not merely a writing system but a cosmological architecture. Each letter corresponds to a divine attribute, an angelic power, a planetary sphere, and a material property. The practitioner who understands these correspondences can, in principle, manipulate reality by constructing the right combinations.

The operational heart of the book is the wafq — the magic square. Al-Buni’s treatment of letter-squares (wafq al-huruf) and number-squares is extraordinarily sophisticated, producing grids in which the numerical values of Arabic letters sum to equal totals in every row, column, and diagonal. These squares were inscribed on paper, metal, cloth, and ceramic — worn as amulets, buried at thresholds, dissolved in water and drunk. Al-Buni provides squares for healing, for love, for protection from enemies, for acquiring favor from rulers, and for communicating with spiritual beings.

He also provides the divine names — the asma al-husna and their more esoteric variants — with specific protocols for their invocation: how many times to repeat them, at which planetary hours, after which purifications, oriented in which direction. This is not vague mysticism. It is operational instruction.


The Names You Were Not Supposed to Write Down

Among the most controversial elements of Shams al-Ma’arif are al-Buni’s treatments of the Ism al-A’zam — the Greatest Name of God — and his classification of angelic and spiritual beings susceptible to human invocation. Orthodox Islamic theology holds that God is absolutely transcendent and that attempts to coerce or manipulate the divine through ritual formulas constitute shirk (associationism, the gravest of sins) or, at minimum, bid’a (blameworthy innovation).

Al-Buni’s counter-argument was elegant and infuriating in equal measure: he maintained that the power of these operations derived entirely from God, and that the practitioner was not commanding God but rather aligning himself with the divine order already embedded in creation. The letters, names, and squares were, in his framing, not magic but hikma — wisdom, science, the proper understanding of how God’s creation works.

Religious authorities were not convinced. The problem was not merely theological abstraction. Shams al-Ma’arif was being used — copied out by ordinary people, by soldiers seeking battlefield invulnerability, by merchants wanting commercial advantage, by jealous husbands and spurned lovers. The book had escaped al-Buni’s Sufi-scholarly context entirely and was circulating as a practical handbook for anyone literate enough to follow its instructions.


Banned, Burned — and Copied Faster Than It Could Be Destroyed

The suppression of Shams al-Ma’arif across the Mamluk period (1250–1517 CE) and beyond is well-documented in chronicles and legal opinions. Mamluk-era religious scholars issued fatwas against its use, and there are records of public burnings of occult manuscripts during periodic reform campaigns — though the historical record makes it difficult to attribute specific book-burning incidents to specific dates and rulers without overclaiming. What is clear is that official hostility to the text was consistent and that it had no discernible effect on the manuscript tradition.

The reason is simple: Shams al-Ma’arif was too useful to burn. It circulated in Sufi brotherhoods (turuq) where a certain esoteric knowledge was not only tolerated but expected. It was copied in North Africa, in the Levant, in Persia, in Ottoman Anatolia, in Mughal India. Each new context produced new recensions, new attributions, new expanded or abridged versions carrying al-Buni’s name. The text became, in effect, a living tradition rather than a fixed document.

The shift to print did not help the suppressors. When the Shams al-Ma’arif was finally set in type — the Bulaq printed edition of 1888, produced at the Egyptian government’s own press in Cairo, is among the earliest — it immediately became one of the most commercially successful books in the Arab world. The irony was complete: a text that authorities had spent centuries trying to eradicate was now being mass-produced by a state printer.

Twentieth-century Egypt returned to the problem. Various printed editions of Shams al-Ma’arif have been subject to restriction or removal from circulation by Egyptian authorities at different periods, particularly during campaigns against “superstition” (khurafat) in the mid-twentieth century. The exact scope and enforcement of these restrictions is disputed, and it would be inaccurate to describe them as total bans in the manner of a formal legal prohibition. The more accurate picture is one of recurring official discomfort, intermittent enforcement, and a street market in Cairo that has never stopped selling the book.


Why the Sultan Didn’t Burn Every Copy

The survival of Shams al-Ma’arif through seven centuries of official hostility requires explanation beyond simple manuscript proliferation. Part of the answer lies in the ambiguity of al-Buni’s own tradition. The Sufi brotherhoods that preserved and transmitted his work were not marginal institutions. They were often closely connected to political power — Sufi masters blessed armies, mediated tribal disputes, and provided legitimacy to sultans. A ruler who burned Sufi manuscripts today might need a Sufi saint’s blessing tomorrow.

There is also the question of efficacy. People believed the Shams al-Ma’arif worked. Not universally, not naively — the manuscript tradition contains skeptical commentary as well as credulous commentary — but sufficiently that it retained its reputation across centuries and continents. A text with that kind of cultural weight does not get eradicated; it gets accommodated, however reluctantly.

The scholars who continued to engage with al-Buni’s tradition after his death developed increasingly sophisticated apologetic frameworks for distinguishing “permissible” from “impermissible” occult practice. The hikma tradition — which framed letter-magic and name-magic as a form of natural philosophy rather than forbidden sorcery — gave cover to practitioners who wanted to use al-Buni’s techniques without running afoul of religious law. This accommodation was never fully stable, never officially sanctioned, but it was functionally sufficient.


The Lineage That Continued: Shams al-Anwar and the 14th-Century Tradition

Al-Buni died around 1225 CE, but the tradition he systematized did not die with him. It was taken up, extended, and elaborated by subsequent scholars working in the same current of Sufi-inflected letter-mysticism. One of the most significant texts in this lineage is Shams al-Anwar wa Kanz al-Asrar al-Kubra — “Suns of Lights and the Treasury of Great Secrets” — composed around 1327 CE by Ibn al-Hajj al-Tilmsani, a North African scholar working a full century after al-Buni.

Shams al-Anwar inherits al-Buni’s theoretical framework: the cosmological significance of Arabic letters, the operational use of divine names, the construction of talismanic squares. But it extends the system with new material on planetary magic, on the properties of specific Quranic verses as operative formulas, and on the protocols for working with spiritual beings. It is a text that assumes familiarity with the al-Buni tradition and builds upon it — evidence that the tradition was alive and developing, not merely being copied and preserved.

John Friend Publishing has made Shams al-Anwar available in the first English translation: Suns of Lights & Treasures of Secrets. For anyone who wants to understand what the Arabic occult tradition actually looked like in practice — the specific prayers, the specific names, the specific instructions — this is the primary source.


What Was Lost, and What Survived

The story of Shams al-Ma’arif is not a simple story of forbidden knowledge surviving despite persecution. It is a more complicated story about how a sophisticated intellectual tradition navigates the gap between what institutions permit and what practitioners actually do.

Al-Buni wanted to be taken seriously as a scholar. He framed his work in the most respectable terms available to him. The tradition he founded was taken seriously — by hundreds of thousands of readers across dozens of cultures, across seven centuries, in conditions of secrecy and conditions of openness. The authorities who burned his books were, in their own way, acknowledging the same thing: this was a text with real power, whether that power was the power of divine science or the power of dangerous superstition.

The manuscript tradition is not entirely preserved. Recensions have been lost. Regional variants have been incompletely catalogued. There are aspects of al-Buni’s original system that are now recoverable only by inference from later texts. This is what happens to forbidden books: they survive, but not intact. They survive as living traditions, continuously adapted, continuously copied, never quite identical from one manuscript to the next.

Which is, of course, exactly what al-Buni would have expected. In his system, knowledge is not a dead object. It is a living force, moving through practitioners, shaped by the divine names that animate it.


Where to Read This Tradition in English

The al-Buni tradition has no authoritative complete English translation at present — the Shams al-Ma’arif itself remains largely untranslated. But the century-later continuation of that tradition is now available:

Suns of Lights & Treasures of Secrets (Shams al-Anwar, Ibn al-Hajj al-Tilmsani, 1327 CE) — the first English translation of this 14th-century Arabic grimoire in the direct al-Buni lineage.

For the Solomonic magic that runs parallel to al-Buni’s letter-mysticism, the Kitab al-Ajnas is the essential companion text: Kitab al-Ajnas: Solomonic Grimoire of Asif ibn Barkhiya.


Further reading: Liana Saif’s scholarship on al-Buni’s reception history is the most rigorous academic treatment available in English. Her article “The Arabic Hermes” (2019) and her broader work on Islamic occultism provide the scholarly grounding for much of what is summarized here. See also the Wikipedia entry on Ahmad ibn Ali al-Buni as an entry point into the secondary literature.