Riddles are historically a significant genre of Arabic literature. The Qur’an does not contain riddles as such, though it does contain conundra. But riddles are attested in early Arabic literary culture, 'scattered in old stories attributed to the pre-Islamic bedouins, in the ḥadīth and elsewhere; and collected in chapters'. Since the nineteenth century, extensive scholarly collections have also been made of riddles in oral circulation.
Although in 1996 the Syrian proverbs scholar Khayr al-Dīn Shamsī Bāshā published a survey of Arabic riddling, analysis of this literary form has been neglected by modern scholars, including its emergence in Arabic writing; there is also a lack of editions of important collections. A major study of grammatical and semantic riddles was, however, published in 2012, and since 2017 legal riddles have enjoyed growing attention.

Terminology and genres
Riddles are known in Arabic principally as lughz () (pl. alghāz ألغاز), but other terms include uḥjiyya (pl. aḥājī), and ta'miya.

Lughz is a capacious term. As al-Nuwayrī (1272–1332) puts it in the chapter on alghāz and aḥājī in his Nihāyat al-Arab fī funūn al-adab: Lughz is thought to derive from the phrase alghaza ’l-yarbū‘u wa-laghaza, which described the action of a field rat when it burrows its way first straight ahead but then veers off to the left or right in order to more successfully elude its enemies (li-yuwāriya bi-dhālika) so that it becomes, as it were, almost invisible (wa-yu‘ammiya ‘alā ṭālibihī). But in fact our language also has many other names of lughz such as mu’āyāh, ’awīṣ, ramz, muḥāgāh, abyāt al-ma’ānī, malāḥin, marmūs, ta’wīl, kināyah, ta‘rīd, ishārah, tawgīh, mu‘ammā, mumaththal. Although each of these terms is used more or less interchangeably for lughz, the very fact that there are so many of them is indicative of the varied explanations which the concept of lughz can apparently support. This array of terms goes beyond those covered by riddle in English, into metaphor, ambiguity, and punning, indicating the fuzzy boundaries of the concept of the riddle in literary Arabic culture.

Overlap with other genres
Since early Arabic poetry often features rich, metaphorical description, and ekphrasis, there is a natural overlap in style and approach between poetry generally and riddles specifically; literary riddles are therefore often a subset of the descriptive poetic form known as waṣf. Indeed, some of the riddles included by Abū al-Maʿālī Saʿd ibn ʿAlī al-Ḥaẓīrī in his seminal, twelfth-century CE collection of riddles are verses selected from longer poems, in whose original context they are indeed metaphorical descriptions rather than riddles; likewise Abū Naṣr Aḥmad b. Ḥātim al-Bāhilī's Kitāb Abyāt al-maʿānī, while focusing on verses rendered enigmatic by the removal of their context, also included purposeful riddles.
To illustrate how some epigrams (maqāṭīʿ) are riddles Adam Talib contrasts the following poems. The first, from an anonymous seventeenth-century anthology, runs:
The second is from the fifteenth-century Rawḍ al-ādāb by Shihāb ad-Dīn al-Ḥijāzī al-Khazrajī:
In the first case, the subject of the epigram is clearly stated within the epigram itself, such that the epigram cannot be considered a riddle. In the second, however, the resolution 'depends on the reader deducing the point after the poem has been read'.
Muʿammā
The term muʿammā (literally 'blinded' or 'obscured') is sometimes used as a synonym for lughz (or to denote cryptography or codes more generally), but it can be used specifically to denote a riddle which is solved 'by combining the constituent letters of the word or name to be found'.
The muʿammā is in verse, does not include an interrogatory element, and involves clues as to the letters or sounds of the word. One example of the form is a riddle on the name Aḥmad:
Another example, cited by Ibn Dāwūd al-Iṣfahānī, has the answer 'Saʿīd'. Here, and in the transliteration that follows, short vowels are transliterated in superscript, as they are not included in the Arabic spelling:
The first known exponent of the muʿammā form seems to have been the major classical poet Abu Nuwas, though other poets are also credited with inventing the form: Al-Khalil ibn Ahmad al-Farahidi (noted for his cryptography) and Ali ibn Abi Talib.
It appears that the muʿammā form became popular from perhaps the thirteenth century.
Muʿammā riddles also include puzzles using the numerical values of letters.





