"Ali Baba and the Forty Thieves" () is a folk tale from the One Thousand and One Nights. It was added to the collection in the 18th century by its French translator Antoine Galland, who heard it from Syrian storyteller Hanna Diyab. As one of the most popular Arabian Nights tales, it has been widely retold and performed in many media across the world, especially for children (for whom the more violent aspects of the story are often suppressed). In the original version, Ali Baba ( ) is a poor woodcutter and an honest person who discovers the secret of a thieves' den, and enters with the magic phrase "open sesame". The thieves try to kill Ali Baba, but Ali Baba's faithful slave-girl foils their plots. Ali Baba's son marries her and Ali Baba keeps the secret of the treasure. Textual history The tale was added to the story collection One Thousand and One Nights by one of its European translators, Antoine Galland, who called his volumes Les Mille et Une Nuits (1704–1717). Galland was an 18th-century French Orientalist who heard it in oral form from a Syrian Maronite story-teller, called Hanna Diyab, who came from Aleppo in modern-day Syria and told the story in Paris. In any case, the earliest known text of the story is Galland's French version. Richard F. Burton included it in the supplemental volumes (rather than the main collection of stories) of his translation (published as The Book of the Thousand Nights and a Night). The American Orientalist Duncan Black MacDonald discovered an Arabic-language manuscript of the story at the Bodleian Library; however, this was later found to be a counterfeit. Story Ali Baba and his older brother, ( ) Cassim (sometimes spelled Kasim), are the sons of a merchant. After their father's death, the greedy Cassim marries a wealthy woman and becomes well-to-do, building on their father's business. Ali Baba marries a poor woman and settles into the trade of a woodcutter. One day, Ali Baba is at work collecting and cutting firewood in the forest, when he happens to overhear a group of 40 thieves visiting their stored treasure. Their treasure is in a cave, the mouth of which is sealed by a huge rock. It opens on the magic words "open sesame" and seals itself on the words "close sesame". When the thieves are gone, Ali Baba enters the cave himself and