Classical literature in Azerbaijani was formed in the 14th century based on the various Early Middle Ages dialects of Tabriz and Shirvan. Among the poets of this period were Gazi Burhanaddin, Haqiqi (pen-name of Jahan-shah Qara Qoyunlu), and Habibi. The end of the 14th century was also the period of starting literary activity of Imadaddin Nasimi, one of the greatest Turkic Hurufi mystical poets of the late 14th and early 15th centuries and one of the most prominent early divan masters in Turkic literary history, who also composed poetry in Persian and Arabic. The divan and ghazal styles were further developed by poets Qasem-e Anvar, Fuzuli and Khatai (pen-name of Safavid Shah Ismail I).