plays jokes, of a sort, on his neighbors. Nasreddin also reflects another significant change that had occurred between the days when the Turkic people were nomadic and the days when they had largely become settled in Azerbaijan and Anatolia; namely, Nasreddin is a Muslim imam. The Turkic people had first become an Islamic people sometime around the ninth or tenth century, as is evidenced from the clear Islamic influence on the 11th century Karakhanid work the Kutadgu Bilig ("Wisdom of Royal Glory"), written by Yusuf Has Hajib. The religion henceforth came to exercise an enormous influence on Turkic society and literature, particularly the heavily mystically oriented Sufi and Shi'a varieties of Islam. The Sufi influence, for instance, can be seen clearly not only in the tales concerning Nasreddin but also in the works of Yunus Emre, a towering figure in Turkic literature and a poet who lived at the end of the 13th and beginning of the 14th century, probably in the Karamanid state in south-central Anatolia. The Shi'a influence, on the other hand, can be seen extensively in the tradition of the aşıqs, or ozans, who are roughly akin to medieval European minstrels and who traditionally have had a strong connection with the Alevi faith, which can be seen as something of a homegrown Turkic variety of Shi'a Islam. It is, however, important to note that in Turkic culture, such a neat division into Sufi and Shi'a is scarcely possible: for instance, Yunus Emre is considered by some to have been an Alevi, while the entire Turkic aşık/ozan tradition is permeated with the thought of the Bektashi Sufi order, which is itself a blending of Shi'a and Sufi concepts. The word aşıq (literally, "lover") is in fact the term used for first-level members of the Bektashi order. Because the Azerbaijani folk literature tradition extends in a more or less unbroken line from about the 13–15th century to today, it is perhaps best to consider the tradition from the perspective of genre. There are three basic genres in the tradition: epic; folk poetry; and folklore. The epic tradition The Turkic epic has its roots in the Central Asian epic tradition that gave rise to the Book of Dede Korkut; written in Azerbaijani language. The form developed from the oral traditions of the Oghuz Turks (a branch of the Turkic peoples which migrated towards western Asia and eastern Europe through Transoxiana,