Khaqani's Divān contains qasidas (both panegyrics and non-panegyric odes), tarjiʿāt (strophic poems), ghazals (profane love poems), and rubaʿis (quatrains). His other famous work, "Tohfat al-ʿErāqayn", originally titled "Khatm al-gharāʾeb" ("Curious Rarities"), is written in couplet form (mathnawi) and is over three thousand verses long. This book serves as an autobiography and also presents his impressions of the Middle East. Beelaert notes that, although the work is a mathnawi, it exhibits more affinities with his other qasidas. His surviving prose works include the prose introduction to the aforementioned mathnawi, and approximately sixty letters attributed to him.