Question: when was one thousand and one nights written

title: One Thousand and One Nights
text: The history of the Nights is extremely complex and modern scholars have made many attempts to untangle the story of how the collection as it currently exists came about . Robert Irwin summarises their findings : `` In the 1880s and 1890s a lot of work was done on the Nights by Zotenberg and others , in the course of which a consensus view of the history of the text emerged . Most scholars agreed that the Nights was a composite work and that the earliest tales in it came from India and Persia . At some time , probably in the early 8th century , these tales were translated into Arabic under the title Alf Layla , or ' The Thousand Nights ' . This collection then formed the basis of The Thousand and One Nights . The original core of stories was quite small . Then , in Iraq in the 9th or 10th century , this original core had Arab stories added to it -- among them some tales about the Caliph Harun al - Rashid . Also , perhaps from the 10th century onwards , previously independent sagas and story cycles were added to the compilation ( ... ) Then , from the 13th century onwards , a further layer of stories was added in Syria and Egypt , many of these showing a preoccupation with sex , magic or low life . In the early modern period yet more stories were added to the Egyptian collections so as to swell the bulk of the text sufficiently to bring its length up to the full 1,001 nights of storytelling promised by the book 's title . '' 

Answer: answer: Most scholars agreed that the Nights was a composite work and that the earliest tales in it came from India and Persia. At some time, probably in the early 8th century, these tales were translated into Arabic under the title Alf Layla, or 'The Thousand Nights'. The original core of stories was quite small. Then, in Iraq in the 9th or 10th century, this original core had Arab stories added to it. Then, from the 13th century onwards, a further layer of stories was added in Syria and Egypt. In the early modern period yet more stories were added to the Egyptian collections so as to swell the bulk of the text sufficiently to bring its length up to the full 1,001 nights of storytelling promised by the book's title.''