The Shahnameh (Šāhnāme, ʃɒːhnɒːˈme), also transliterated Shahnama, is a long epic poem written by the Persian poet Ferdowsi between c. 977 and 1010 CE and is the national epic of Greater Iran. Consisting of some 50,000 "distichs" or couplets (two-line verses), the Shahnameh is one of the world's longest epic poems. It tells mainly the mythical and to some extent the historical past of the Persian Empire from the creation of the world until the Muslim conquest in the seventh century. Iran, Azerbaijan, Afghanistan, Tajikistan and the greater region influenced by Persian culture such as Armenia, Dagestan, Georgia, Turkey, Turkmenistan and Uzbekistan celebrate this national epic. The work is of central importance in Persian culture and Persian language, regarded as a literary masterpiece, and definitive of the ethno-national cultural identity of Iran. Ferdowsi started writing the Shahnameh in 977 and completed it on 8 March 1010. The Shahnameh is a monument of poetry and historiography, being mainly the poetical recast of what Ferdowsi, his contemporaries, and his predecessors regarded as the account of Iran's ancient history. Many such accounts already existed in prose, an example being the Abu-Mansuri Shahnameh. A small portion of Ferdowsi's work, in passages scattered throughout the Shahnameh, is entirely of his own conception. The Shahnameh is an epic poem of over 50,000 couplets written in Early New Persian. It is based mainly on a prose work of the same name compiled in Ferdowsi's earlier life in his native Tus. This prose Shahnameh was in turn and for the most part the translation of a Pahlavi (Middle Persian) work, known as the Xwadāynāmag "Book of Kings", a late Sasanian compilation of the history of the kings and heroes of Persia from mythical times down to the reign of Khosrow II (590–628). The Xwadāynāmag contained historical information on the later Sasanian period, but it does not appear to have drawn on any historical sources for the earlier Sasanian period (3rd to 4th centuries).