Home / Classic Story Shelf / Arabian Nights
Ali Baba and the Forty Thieves
In a town in Persia lived two brothers. Cassim, the elder, had married a rich merchant’s daughter and owned a shop. Ali Baba, the younger, was as poor as the wife he loved, and every day he took his three donkeys into the forest, cut wood, and sold it in the streets.
One day, hiding in a tree from horsemen, Ali Baba counted forty robbers below. Their captain faced a rock and said, “Open Sesame!” — and the rock opened like a door. In they went with their sacks, and out they came. “Shut Sesame!” said the captain, and the rock closed. When they had gone, he climbed down and tried the words himself. Inside, a cave lay heaped with silks and gold. He filled the sacks his donkeys could carry, hid them under wood, and went home.
His wife feared the gold was stolen until he told her everything. “Before we bury it, let me measure it,” she said, and borrowed a measure from Cassim’s wife — who, curious, smeared grease across its bottom. When the measure came back, a gold coin was stuck to the grease! Cassim’s wife showed her husband the coin and jeered, “Ali Baba measures his gold!” Jealous Cassim demanded the secret, and Ali Baba told him all, offering to share.
Before sunrise Cassim took ten mules to the cave. “Open Sesame!” he cried, and in he went, filling crate after crate. But at the door, the word was gone from his mind. “Open, Barley!” he tried. “Open, Maize! Open, Rice!” The rock stayed shut. There he sat frightened until his wife begged Ali Baba to search. Ali Baba spoke the words, found his brother safe and sorry, and led him home. “No more greed,” Cassim promised, and kept his word.
When the robbers found their prisoner gone and treasure missing, the captain sent one man to town to watch and follow. He trailed Ali Baba home and marked his door with chalk. But Morgiana, the family’s clever helper, saw the mark and drew the same mark on five or six neighbours’ doors. That night, finding every mark alike, the robbers went away baffled.
So the captain came himself, disguised as an oil merchant, with nineteen mules carrying thirty-eight jars — one of oil, the rest hiding a robber. Ali Baba gave him the yard overnight. When Morgiana’s lamp went out, she went to fetch oil, and a voice inside a jar whispered, “Is it time?” “Not yet, but presently,” she answered, jar by jar. She woke Ali Baba, who fetched the town watch, and they surrounded the yard and marched every robber away.
The captain had slipped over the garden wall. Weeks later he returned disguised as Cogia Houssain, a merchant who befriended Ali Baba’s son and was invited to supper, where he would eat no dish with salt in it. That oddness made Morgiana look closely as she served, and she recognised him at once. Quietly she sent for the watch, who took Cogia Houssain away.
Then Ali Baba set Morgiana free: “You are one of this family now, honoured by us all.” The cave stayed their secret; Ali Baba took from it only what his family needed, and Cassim, his lesson learned, shared kindly what he had.
Words to know
- sesame
- A tiny seed — and, in this tale, the magic word that opens the robbers’ cave.
- measure
- A scoop or bowl used to count out grain — or gold — a little at a time.
Quiz: did you catch the details?
Answer all three questions — tap an answer to check it.
1. What stuck to the bottom of the borrowed measure?
2. Which words did Cassim try when he forgot the magic word?
3. How did Morgiana spoil the robbers’ chalk-mark plan?
More ways to enjoy this story
Read it in the Classic Story Shelf — hear it read aloud, play the put-it-in-order game, and print the worksheet.
About this story
Retold from Wikipedia: Ali Baba and the Forty Thieves · Project Gutenberg: Stories from the Arabian Nights, retold by Laurence Housman (#51432).
The Arabian Nights tales — eleven of them — come from The Arabian Nights Entertainments, selected and edited by Andrew Lang in 1898, adapted from Antoine Galland's French translation; Ali Baba, which Lang did not include, follows Laurence Housman's Stories from the Arabian Nights (1907), likewise drawn from Galland's French.
The retelling, questions, and illustrations on this page are original to The Active Home.
For grown-ups
Ali Baba is an “orphan tale”: no Arabic manuscript of it is known. It survives because the Maronite storyteller Hanna Diyab told it to Antoine Galland, whose French version is the source of all later ones. Lang’s 1898 selection omits it, so this story follows Laurence Housman’s retelling in Stories from the Arabian Nights (1907). Softenings declared: originally Cassim is killed, and Morgiana uses boiling oil and a dagger dance; Cassim is rescued alive, the town watch takes the robbers away, and Baba Mustapha’s errand is omitted.