Introduction
Al-Jazari was a 12th-century Muslim engineer. Secularism did not exist during this period—neither in Diyarbakir nor in Western Europe. In fact, the British writer George Holyoake would not coin the term “secularism” until the 19th century, hundreds of years later. However, it is a mistake to assume Islam was monolithic under the Artuqid dynasty. The religious landscape was broad, leaving ample room for diverse practices, distinct emphases, and varied spiritual perceptions.
Being a Muslim meant, first and foremost, participating in a shared religious framework that shaped daily life. For Al-Jazari, this likely entailed observing ritual practices such as the five daily prayers (الصلاة), the Ramadan fast (الصوم), almsgiving (الزكاة), and regular ritual ablution (وُضوء). It also involved a moral framework that enjoined honesty, moderation, and fulfilling obligations. Islam also maintained a constant presence in the daily language through the use of expressions such as Insha’Allah (إن شاء الله -“if Allah wills”) or *bi-awn Allah* (بعون الله -” with Allah’s help”). None of this required intense personal piety; it was simply a part of life.
Within this framework, various approaches coexisted. Some people focused on a legalistic approach. Islam is a religion of “Halakha” – religious law, much like Judaism; it draws no distinction between religious worship and daily life. Sharia(الشريعة) is the Muslim counterpart to Jewish “Halakha”; both systems are based on religious law derived from divine command that governs all aspects of life. The Sharia addresses religious observance (purification, prayer, fasting, etc.) and interpersonal matters (marriage, divorce, inheritance) as well as rules governing personal conduct (eating, dress codes, and the like). Legalists place paramount importance on the formal observance of commandments and on legal rulings.
Others were drawn to Sufism (صوفية) – a mystical branch of Islam that emphasizes love and the intention behind an action rather than religious law itself. While other Islamic branches hold that the Prophet Muhammad has died and his legacy is immutable, Sufis believe the Prophet continues to speak to his followers; they aspired to unite with God through the effacement of their own selves(الاتحاد). There are other perspectives as well. Can one discern Al-Jazari’s religious outlook from the book?
It is an engineering text rather than a theological treatise, yet it contains layers that provide a rather rich picture of Al-Jazari’s religious worldview—one that might be termed “practical piety.”
Opening Sentences
Al-Jazari opens the book with the following sentences:
“Oh God, pray for, keep safe and bless our Lord Muhammad, the seal of the Apostles, his family and his Companions. Praise be to God, creator of his work in the heavens, consignor of the secrets of his wisdom to the earths, which He made as a proof of His dominion, and as a certain sign of His omnipotence. I praise Him for the instruction he has given, and I seek more of his increasing gifts, and these are the manifestations of his wisdom, praise appropriate to some part of his beneficence and his abundant generosity. The grace of God be upon our Lord Muhammad, the noblest type of humankind, and upon his family and upon his followers; beneficence be upon them.”
The Book of Knowledge of Ingenious Mechanical Devices-Translated and annotated by Donald R. Hill.
This combines the Alhamdulillah (الحمد لله) blessing-meaning “Praise be to Allah”—with Salawat (صَلَوَات), a complementary expression of blessings and prayers for the Prophet Muhammad. In everyday speech, Alhamdulillah means “Thank God!” and is common among all Arabic speakers; Arab Christians and Jews from Islamic lands also use the phrase. Religiously, the expression is meant to be uttered with deep reverence and acknowledgment of God’s greatness, yet in practice, it is commonplace and carries no strong religious connotation. While I haven’t researched it, I am quite certain that similar phrases open many manuscripts. Nevertheless, this passage sets the tone for the entire book: technical knowledge framed within a context of Muslim devotion.
Al-Jazari employs Islamic expressions in various contexts (detailed below), yet only one passage-found near the end of the introduction-is explicitly “theological-political” in nature. Similar passages appear in many medieval Islamic works. Modern editors, such as Hill, tend to abridge or-in this instance-omit the passage entirely; this may be due to a focus on engineering or perhaps for some other reason unknown to me. In any case, given the context of religious beliefs, the passage warrants closer attention.
The “theological-political” paragraph
At the end of the introduction in Prof. Hasan’s critical edition—which is based on the Topkapi manuscript—the following text appears;
وصورت لكل شكل مثالا وأشرت إليه بالحروف استدلا لاَ وجعلت عليه من تلك الحروف أبدالاَ <وذلك لاشراق دولة مولانا الامام الناصر لدي ن الله أبي العباس أحمد أمير المؤمنين ثبت الله رواسخ قواعد دولته الباهرة بالسمو الباسق وضاعف الاسلام بشوامخ رواعد نصرته القاهرة بالعلو الشاهق حتى تطبق كلمة التوحيد اقطار الربع المعمور من كرة الا رض وتلفق عظمة التمهيد أطوار الوسع المغمور من طولها والعرض ويتم نعمته عليه ويهديه سراطاً مستقيماً.
My translation (with the help of ChatGPT and dictionaries; if there are any errors, please let me know and I will correct them).
“I have drawn a picture for each device, and have marked it with letters for the sake of clarity, and have also assigned corresponding substitutions from those letters. This [work is done] for the radiance of the state of our lord, the Imam al-Nāṣir li-Dīn Allāh, Abū al-ʿAbbās Aḥmad, Commander of the Faithful.
May God make firm the deeply-rooted foundations of his resplendent state, exalted in towering elevation; and may He strengthen Islam through the lofty thunderbolts of his victorious support, triumphant in sublime height; until the word of divine unity (التوحيد) encompasses the regions of the inhabited quarter of the globe, and the grandeur of [Allah’s] ordering embraces the full extent of its length and breadth; and may He perfect His blessing upon him and guide him upon a straight path.”
For anyone interested in the book beyond its engineering value—perhaps viewing it as a “window” into the 12th century—this passage is essential:
Al-Jazari was aware of the identity of the Abbasid Caliph of his time: Al-Nasir li-Din Allah Abu al-Abbas Ahmad ibn al-Mustadi (الناصر أبو العباس أحمد بن المستضيء) (1158–1225). He was the thirty-fourth Abbasid Caliph, and his long reign marked the final period of the Abbasid dynasty’s flourishing. Despite Al-Jazari’s commitment to his Artuqid benefactors, he viewed himself as part of the broader Muslim world centered in Baghdad. It is important to note that Al-Jazari’s true patrons were the Artuqids, not the Abbasid Caliph. Throughout the Book of Knowledge, he repeatedly refers to them—particularly King Nasir al-Din Mahmud (ناصر الدين محمود), the last of the kings for whom he served as a court engineer and to whom the book is dedicated.
The emphasis on monotheism or divine unity (توحيد) forms the most fundamental basis of the Muslim faith; all other principles, laws, and religious rulings stem from it. Like Judaism and Christianity, Islam maintains that there is a single Creator of the universe – eternal, omnipotent, and sovereign—and that He alone is worthy of worship (idolatry is condemned). From the Islamic perspective, the Christian doctrine of the Trinity and the Jewish practice of visiting the tombs of righteous figures are considered acts of Heresy (شرك). As Al-Jazari writes:
” until the word of divine unity (التوحيد) encompasses the regions of the inhabited quarter of the globe”
It expresses the Islamic hope that the proclamation of God’s absolute oneness—as understood in Islam—will prevail throughout the inhabited world. This is, in all likelihood, his way of incorporating the Shahada (الشهادة)-the Islamic declaration of faith, which includes a statement regarding the exclusivity of God:
“There is no god but Allah (لَا إِلَٰهَ إِلَّا ٱللَّٰهُ).”
Ritual Ablution
The most distinctly “Islamic” devices Al-Jazari built are automata and basins designed to facilitate ritual ablution (وُضوء). These include, for instance, a highly sophisticated automaton of a young servant holding a water pitcher in one hand and a towel and comb in the other, a peacock that sprays water from its beak, and more. To the best of my knowledge, no examples of automata or other such “inventions” for ritual ablution predate Al-Jazari.
Muslims believe that physical purity is the foundation of spiritual purity and a necessary prerequisite for prayer (الصلاة), one of the five pillars of Islam. According to tradition, when the commandment of prayer was ordained, the Angel Gabriel came to Muhammad, struck the ground with his foot, and water gushed forth. Gabriel performed the ritual purification, thereby teaching Muhammad how to purify himself. Muhammad then returned home and taught Khadija, his first wife, how to perform the purification. The Quran also contains a direct command from the Prophet Muhammad regarding the ritual washing for purification:
“O you who have believed, when you rise to [perform] prayer, wash your faces and your forearms to the elbows and wipe over your heads and wash your feet to the ankles. And if you are in a state of janabah[a state of major ritual impurity in Islam caused by sexual intercourse], then purify yourselves. But if you are ill or on a journey or one of you comes from the place of relieving himself or you have contacted women and do not find water, then seek clean earth and wipe over your faces and hands with it. Allah does not intend to make difficulty for you, but He intends to purify you and complete His favor upon you that you may be grateful.”
Surat Al-Mā’idah (The Table Spread) verse 6
Al-Jazari’s extensive focus on ritual purification may attest to the importance of the act within the Artuqid court in Diyarbakir; furthermore, the purification ablution aligns particularly well with Al-Jazari’s passion for automata. In any case, this represents a direct intersection between prayer and Al-Jazari’s work.
Language
I went through the book and counted every instance where Al-Jazari uses the name “Allah” (الله). I found seven such occurrences; in every case, these are standard expressions within Muslim society-for example, when referring to his predecessors, the Banu Musa brothers or Yunus al-Asturlabi, he writes “may Allah have mercy on him” (رحمه الله), a common phrase used for the deceased.
When writing about his patron, the Artuqid King Nasir al-Din Mahmud, or about the Abbasid Caliph, he employs expressions such as “may Allah preserve him” (ابقاه الله) or “may Allah multiply his goodness” (ضاعف الله صلاحه)-phrases that are also in common use.
I did not find any instances of “Allah” being invoked—such as the phrase “if Allah wills” (إن شاء الله) – during the description of the machines’ construction. To the best of my knowledge, this expression was in common use during the 12th century, making it interesting that al-Jazari does not use it at all. Al-Jazari’s book is descriptive and procedural: each of the fifty devices is presented as a machine that is built and operated (e.g., “this device functions in this way; take a cylinder with such-and-such dimensions…”). There is little opportunity to express a conditional future intention—the very context where the use of “Insha’Allah” would be natural.
“Muslim tone”
The final aspect concerns the character of the man that emerges from the book. This involves several elements, foremost among them intellectual humility. Al-Jazari occasionally comments on earlier scholars, such as Archimedes or the Banu Musa; his approach is critical yet objective, and he proceeds with caution. He points out flaws or inefficiencies, yet he qualifies his remarks and certainly does not diminish their greatness. I believe this reflects a broader Islamic ethic: respect for past scholars coupled with a responsibility to advance knowledge- a pursuit often viewed as both a moral and an intellectual obligation.
Secondly, there is the absence of “wonder for wonder’s sake.” Consider, for instance, the miniature temple designed by Hero of Alexandria.
It is a scale model of a temple featuring closed doors and an altar; when a fire is lit on the altar, the doors open. Once the fire dies down, the doors close again—the entire process operates automatically, without anyone touching the doors. When comparing the automata of Al-Jazari with those of Hero, the discussion usually focuses on engineering differences: Hero relies primarily on heat, air pressure, and hydraulics, whereas Al-Jazari generally favors floats, valves, gears, cams, and gravity-driven mechanisms. Al-Jazari does not shy away from impressive spectacle-I have previously written about the engineer as a magician-yet even his mechanical cow is integrated with a fully functional pump, and even his most playful devices serve as part of courtly ceremonies or banquets. The Hellenistic automaton is merely for show; aside from evoking wonder, it serves no practical purpose. I believe this restraint aligns with a worldview based on religious undertones.
What is absent—and perhaps equally significant
It is interesting to note that Al-Jazari does not:
- preach or explicitly moralize
- incorporate Quranic exegesis or legal discussions
- present arguments in defense of religion
His religiosity is embedded in his writings rather than presented as an argument. In this respect, Al-Jazari’s book reflects an Islam in which engineering serves genuine religious practices (such as ritual ablution and the observance of prayer times), Allah is invoked naturally as part of the language, knowledge is pursued with passion yet without arrogance, and engineering marvels serve the life of the court in Diyarbakir.





































