Ali Baba and the Forty Thieves (Arabic: ? ) is a folk tale included in many versions of One Thousand and One Nights. Antoine Galland, who heard the story from Syrian storyteller Hanna Diyab, added it to the Nights in the 18th century. It is one of the most familiar of the "Arabian Nights" tales, and has been widely retold and performed in many media, especially for children, where the more violent aspects of the story are often suppressed.
In the story, Ali Baba (Arabic: ? ?Al? B?b? ) is a poor woodcutter who discovers the secret of a thieves' den, entered with the phrase "Open Sesame". The thieves learn this and try to kill Ali Baba, but Ali Baba's faithful slave-girl foils their plots. Ali Baba gives his son to her in marriage and keeps the secret of the treasure.
Ali Baba and his elder brother Cassim 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 discreetly takes a single bag of gold coins home.
Ali Baba and his wife borrow his sister-in-law's scales to weigh their new wealth. Unbeknownst to them, Cassim's wife puts a blob of wax in the scales to find out what Ali Baba is using them for, as she is curious to know what kind of grain her impoverished brother-in-law needs to measure. To her shock, she finds a gold coin sticking to the scales and tells her husband. Under pressure from his brother, Ali Baba is forced to reveal the secret of the cave. Cassim goes to the cave, taking a donkey with him to take as much treasure as possible. He enters the cave with the magic words. But in his greed and excitement over the treasure, he forgets the words to get out again. The thieves find him there and kill him. When his brother does not come back, Ali Baba goes to the cave to look for him, and finds the body quartered and with each piece displayed just inside the cave's entrance, as a warning to anyone else who might try to enter.
Ali Baba brings the body home where he entrusts Morgiana, a clever slave-girl from Cassim's household, with the task of making others believe that Cassim has died a natural death. First, Morgiana purchases medicines from an apothecary, telling him that Cassim is gravely ill. Then, she finds an old tailor known as Baba Mustafa whom she pays, blindfolds, and leads to Cassim's house. There, overnight, the tailor stitches the pieces of Cassim's body back together. Ali Baba and his family are able to give Cassim a proper burial without anyone suspecting anything.
The thieves, finding the body gone, realize that another person must know their secret, and they set out to track him down. One of the thieves goes down to the town and comes across Baba Mustafa, who mentions that he has just sewn a dead man's body back together. Realizing the dead man must have been the thieves' victim, the thief asks Baba Mustafa to lead the way to the house where the deed was performed. The tailor is blindfolded again, and in this state he is able to retrace his steps and find the house. The thief marks the door with a symbol so the other thieves can come back that night and kill everyone in the house. However, the thief has been seen by Morgiana who, loyal to her master, foils the thief's plan by marking all the houses in the neighborhood similarly. When the 40 thieves return that night, they cannot identify the correct house, and their leader kills the unsuccessful thief in a furious rage. The next day, another thief revisits Baba Mustafa and tries again. Only this time, a chunk is chipped out of the stone step at Ali Baba's front door. Again, Morgiana foils the plan by making similar chips in all the other doorsteps, and the second thief is killed for his failure as well. At last, the leader of the thieves goes and looks himself. This time, he memorizes every detail he can of the exterior of Ali Baba's house.
The leader of the thieves pretends to be an oil merchant in need of Ali Baba's hospitality, bringing with him mules loaded with 38 oil jars, one filled with oil, the other 37 hiding the other remaining thieves. Once Ali Baba is asleep, the thieves plan to kill him. Again, Morgiana discovers and foils the plan, killing the 37 thieves in their oil jars by pouring boiling oil on them. When their leader comes to rouse his men, he discovers they are all dead and escapes. The next morning, Morgiana tells Ali Baba about the thieves in the jars. They bury them, and Ali Baba shows his gratitude by giving Morgiana her freedom.
To exact revenge, the leader of the thieves establishes himself as a merchant, befriends Ali Baba's son (who is now in charge of the late Cassim's business), and is invited to dinner at Ali Baba's house. However, the thief is recognized by Morgiana, who performs a sword dance with a dagger for the diners and plunges it into the thief's heart, when he is off his guard. Ali Baba is at first angry with Morgiana, but when he finds out the thief wanted to kill him, he is extremely grateful and rewards Morgiana by marrying her to his son. Ali Baba is then left as the only one knowing the secret of the treasure in the cave and how to access it.
Tom Holt's mythopoeic novel Open Sesame is based on characters from the story of Ali Baba and the Forty Thieves.
In an Alvin comic book (Dell Comics #10, Jan.-Mar. 1965), The Chipmunks (Alvin, Theodore, and Simon) join eccentric scientist Dr. Dilby in his time machine. Their first stop is ancient Persia, where they meet Ali Baba and help him fight the 40 Thieves.
Although not a direct adaptation, the characters of Ali Baba, Cassim, and Morgiana as well as part of the concept of the Forty Thieves are featured in the Japanese manga series Magi. In 2012, this manga was adapted to anime.
Alibaba a film made in Bengali in 1937, was an adaptation of Kshirodprasad Bidyabinod play based on the original story. Sadhana Bose and Madhu Bose starred in the film as Mariana and Abdalla respectively.
Ali Baba We El Arbeen Haramy (1942, in English Ali Baba and the Forty Thieves) is an Egyptian film adaptation, starring Ali AlKassar as Ali Baba and the comedian actor Ismail Yasin as his assistant.
Ali Baba Bujang Lapok (1960) is a Malaysian comedy film which quite faithfully adhered to the tale's plot details but introduced a number of anachronisms for humour, for example the usage of a truck instead of donkey by Kassim Baba to steal the robbers' loot.
In the American/British television mini-series Arabian Nights (2000), the story is told faithfully with two major changes. The first is: when Morgiana discovers the thieves in the oil jars, she alerts Ali Baba and, together with a friend, they release the jars on a street with a steep incline that allows the jars to roll down and break open. Furthermore, the city guard is alerted and arrest the disoriented thieves as they emerge from their containers. Later, when Morgiana defeats the thief leader, Ali Baba, who is young and has no children, marries the heroine himself.
The story of Ali Baba was featured in Inkheart (2008). One of the 40 Thieves, named Farid (played by Rafi Gavron), is brought out of the story by Mortimer "Mo" Folchart and ends up becoming his ally.
Another Disney film Aladdin (1992) makes references to the story, as Genie names Ali Baba and the Forty Thieves in the song "Friend Like Me".
In Aladdin and the King of Thieves (1996), the 40 thieves play an integral part in the story. However, the story is very different from the original Ali Baba story, particularly Cassim's new role as Aladdin's father and the King of Thieves.
In the animated movie Ali Baba and the 40 Thevies-The Lost Scimitar of Arabia (2005), Ali Baba, the son of the Sultan of Arabia, is worried about his father's safety when he discovers that the Sultan's evil brother, Kasim, has taken over the throne and is plotting to kill him. With his friends, Ali returns to Arabia and successfully avoids his uncle's henchmen. Out in the desert, Ali becomes the leader of a group of forty men who are ready to fight against Kasim.
In the anime Magi: The Labyrinth of Magic (serialized since June 2009), Ali Baba appears as one of the main characters and one of Aladdin's friends. At some point in the show, he is shown as the leader of a gang of thieves called Fog Troupe. Morgiana is his loyal friend, whom Ali Baba freed from slavery, and Cassim is his friend from the slums, who is constantly jealous of Ali Baba and tries to bring him ill fate, when he can.
Elements of Ali Baba were featured in the second Dinosaur King series, from episodes 18 through 21. One of the most common elements of the story featured the 39 Thieves (one of its 40 members was out sick), and it featured the "Open Sesame" phrase.
Badi-Bandar Rupkatha (-? ) is a 2014 Bangladeshi theatrical dance adaption of Ali Baba and Forty Thieves organised by Srishti cultural centre and Nrityanchal. Many leading Bangladeshi dancers performed in the adaption such as Shamim Ara Nipa, Shibli Sadiq, etc.
Ali Baba (1981) is a computer video game by Quality Software
At the United States Air Force Academy, Cadet Squadron 40 was originally nicknamed "Ali Baba and the Forty Thieves" before eventually changing its name to the "P-40 Warhawks".
The name "Ali Baba" was often used as derogatory slang by American and Iraqi soldiers and their allies in the Iraq War, to describe individuals suspected of a variety of offenses related to theft and looting. Additionally, British soldiers routinely used the term to refer to Iraqi civilians. In the subsequent occupation, it is used as a general term for the insurgents.
The Iraqis adopted the term "Ali Baba" to describe foreign troops suspected of looting.
^Mahdi, Muhsin (1994). "Galland's Successors (chapter 2)". The Thousand and One Nights: From the Earliest Known Sources, Part 3, "Introduction and Indexes". Italic or bold markup not allowed in: |work= (help)