The Origin of “Ojalá”: God Willing, in Arabic
Where does the Spanish word ojalá come from? From Andalusi Arabic law šá lláh, “if God wills it.” A Muslim prayer hidden inside everyday Spanish.

Every time a Spanish speaker sighs “¡ojalá!” —“I hope so!”— they are unknowingly repeating a prayer to God in Arabic. The word comes from Andalusi Arabic law šá lláh, meaning “if God wills it” or “would that God willed it.” It is one of the most intimate things Arabic left inside Spanish: not a technical term or the name of an object, but the very way of expressing wish and hope. When a Spaniard says ojalá llueva (“I hope it rains”) or ojalá apruebe (“I hope I pass”), they are, without realizing it, placing their luck in heaven’s hands.
Seven centuries of Arabic in Iberia
In the year 711 a Muslim army crossed the Strait of Gibraltar, and within a few years it controlled almost the entire Iberian Peninsula, which they called al-Andalus. Over the following centuries —until the fall of Granada in 1492— Arabic lived alongside the Iberian Romance tongues, and from that contact Spanish inherited close to four thousand words. Most are easy to spot by the Arabic article al- stuck to the front: almohada (pillow), alcalde (mayor), alfombra (carpet), aduana (customs), azúcar (sugar), aceite (oil).
That same world gave Spanish both scientific and everyday vocabulary. From it come “algebra,” the Arabic word that also meant setting broken bones, and “alcohol,” which began as a cosmetic powder. “Ojalá” belongs to that inheritance, but it is a different kind of case: it names not a thing, but a feeling.
Law šá lláh: the anatomy of a wish
The original expression breaks into three pieces. Law is the conditional conjunction “if”; šá comes from the verb “to want, to wish”; and lláh is, of course, Allāh, “God.” All together: “if God willed it.” In the spoken Andalusi Arabic of the streets, the phrase fused until it sounded like a single word, oxalá, and that is how it entered medieval Castilian. The old Spanish x was pronounced like the English “sh,” a phonetic trace of that original šá which today we say as a Spanish j.
It should not be confused with a similar and better-known Arabic formula: in šá Alláh (“inshallah”), “God willing,” which Muslims use when speaking of future plans. “Ojalá” descends from the variant with law, closer to pure longing —ojalá fuera verdad, “if only it were true”— than to a conditional promise. The Spanish Royal Academy’s dictionary records exactly that source: from Andalusi Arabic law šá lláh, “if God wills it.”
A prayer that lost its religion
The strangest thing about “ojalá” is that it entered Christian Spanish loaded with a foreign divine name —that of Allah— and survived precisely because it stopped being recognized as such. Over the centuries the word wore down into a pure gesture of hope, emptied of theology. Today believers and atheists use it alike, and no one who cries “¡ojalá!” feels they are praying. It is the same erosion that carried “disaster,” which began by blaming the stars, into naming any catastrophe with no memory of astrology at all.
The Arabic trace did not stop at Castilian. Portuguese and Galician say oxalá, the x still preserving the old sound; and some hear similar echoes in other languages of the peninsula. All point to the same historical moment: those centuries when Muslims, Christians and Jews shared markets, trades and words, and when a formula of Islamic faith could slip into everyone’s mouth.
The fossil of a shared life
“Ojalá” is, at bottom, a small linguistic fossil: proof that a language does not merely borrow the names of things, but sometimes the way of feeling itself. In adopting this word, Spanish copied neither an object nor a technique, but a way of looking at the future with humility, leaving the last word to a higher power. Every ojalá is a tiny echo of al-Andalus, a fossilized prayer still spoken eight centuries later without any memory of whom it once addressed. The next time you hear it, listen closely and you will catch, buried inside, the law šá lláh of a people who prayed in Arabic.
References
- “Ojalá”, Diccionario de la lengua española (RAE-ASALE): from Andalusi Arabic law šá lláh, “if God wills it”. dle.rae.es
- “Ojalá”, Wiktionary: inherited from Old Spanish oxalá, from Andalusi Arabic law šá lláh / wašā' allāh, with the phonetic shift from medieval x to the modern Spanish j. en.wiktionary.org
- “Ojalá”, Castellano Actual (University of Piura): analysis of the Arabic origin, the translation “if God wills it,” and its present-day use as an interjection of desire. udep.edu.pe
- “Ojalá”, Diccionario etimológico (etimologias.dechile.net): on law šá lláh, the Arabic presence in Iberia from 711, and the distinction from in šá Alláh. etimologias.dechile.net
Enjoy the stories behind words? Continue with the origin of “alcohol” and that of “cipher” and “zero”, or browse the whole etymology series.
The books · born from this blog

Atahualpa con su abrigo de pelo de murciélago
y otras 49 historias verdaderas que parecen mentira
Available on Amazon
Tocar madera
Pequeña historia de las supersticiones que el mundo no ha podido soltar
Available on Amazon
100 futuros
Cien escenarios del mundo que viene con la inteligencia artificial
Available on AmazonYou may also like

The Origin of the Word “Disaster”: A Bad Star
Where does the word disaster come from? From astrology: dis- “bad” plus astrum “star.” A disaster was, literally, the fault of an ill-placed star.

The Origin of the Word “Salary”: Salt and Soldiers
Where does the word salary come from? From Roman salt. But the idea that soldiers were paid in salt is more myth than actual history.

Grace Hopper and the True Origin of the Computer Bug
On September 9, 1947 a moth got stuck in the Mark II. But Grace Hopper didn't coin the word bug: Edison was already using it back in 1878.