The papyrus was discovered at Thebes in Egypt in the early 19th century, part of a large cache of magical texts acquired by Jean d'Anastasi, an adventurer then serving as Swedish vice-consul in Alexandria. Anastasi sold much of his collection to the Dutch government in 1828, and this papyrus entered the Leiden Museum's holdings β but the manuscript had, at some earlier point, already been torn into two separate pieces. One portion remained with the Leiden collection; the other was later sold at a separate 1857 auction of further Anastasi material and acquired by the British Museum in London.
Scholars eventually recognised that the London and Leiden fragments were two halves of a single original document, and the text is now studied and published jointly as the Demotic Magical Papyrus of London and Leiden. Written in the 2nd or 3rd century CE, it is bilingual β combining Demotic Egyptian script with substantial passages of Greek β reflecting the genuinely mixed linguistic and religious world of Roman-era Egypt.