🏜️ Arabian Nights

Ali Baba and the Forty Thieves

The most famous treasure cave in all of storytelling

⏱️ 10 min read📍 Origin: One Thousand and One Nights📚 Children🎒 Teens
Aa18px

In a city in Persia, there lived two brothers. Cassim, the elder, had married the daughter of a wealthy merchant and lived in a fine house with servants and silk. Ali Baba, the younger, had married a poor woman and earned his living cutting wood in the forest, loading it onto his three donkeys, and selling it in the market.

Ali Baba did not envy his brother. He had enough — a small house, a kind wife, food on the table. Enough is a powerful word when you mean it.

One afternoon, deep in the forest, Ali Baba heard hoofbeats. He scrambled up a large tree and hid among the branches. Forty horsemen rode into the clearing below. They were heavily armed, their saddlebags bulging with stolen goods. Their leader — a tall man with a scar across his chin — dismounted before a sheer rock face.

"Open, Sesame!" he commanded.

The rock split open. A cave mouth appeared, wide enough for the horses. The forty thieves rode inside. Ali Baba waited, barely breathing, clinging to his branch.

After an hour, they emerged. "Close, Sesame!" said the captain. The rock sealed shut, smooth as before. The thieves mounted and rode away.

Ali Baba waited until the hoofbeats faded completely. Then he climbed down, stood before the rock, and spoke the words: "Open, Sesame."

The rock opened.

Inside was more treasure than Ali Baba had imagined existed. Gold coins in heaps taller than a man. Bolts of silk from China. Carpets from Isfahan. Jewels in wooden chests — rubies, emeralds, sapphires spilling over the edges like coloured rain. Bales of rare spices. Silver vessels. The accumulated plunder of years of robbery.

Ali Baba did not lose his head. He did not try to carry everything. He loaded his three donkeys with as many gold coins as they could bear, covered the sacks with firewood so they looked ordinary, and went home.

His wife was astonished. She had never seen a gold coin, let alone a sack of them. She wanted to count them, but there were too many. She ran next door to borrow a measuring cup from Cassim's wife — to measure the coins like grain.

Cassim's wife, suspicious, smeared the bottom of the cup with wax before lending it. When the cup was returned, a single gold coin was stuck to the wax.

That evening, Cassim stormed into Ali Baba's house. "You measure gold by the cupful? What have you been hiding?"

Ali Baba, who was honest to a fault, told him everything. The cave, the words, the treasure.

At dawn, Cassim rode to the forest with ten mules. "Open, Sesame!" he cried, and the cave opened. He rushed inside and began loading treasure — as much as ten mules could carry, then more. Bags of gold, chests of jewels, rolls of silk. He worked in a frenzy of greed, stuffing sacks until they tore.

When he tried to leave, his mind was so full of treasure that it had no room for the password. He stood before the sealed cave and shouted: "Open, Barley! Open, Wheat! Open, Millet!"

He tried every grain he could think of. Sesame did not come. He was still trying when the forty thieves returned.

They found him inside their cave. They did not ask questions. Cassim's greed had sealed his fate more surely than any rock.

When Cassim did not return, Ali Baba went looking. He found what remained and brought his brother home for a proper burial. But now the thieves knew someone else had discovered their secret.

The captain was clever. He sent a spy to the city, who traced the burial to Ali Baba's house. The captain disguised himself as an oil merchant with nineteen mules, each carrying two large oil jars. In one jar was oil. In the other thirty-seven jars hid a thief each, curled up and waiting.

The "oil merchant" asked Ali Baba for hospitality for the night. Ali Baba, generous as always, welcomed him. The jars were placed in the courtyard.

It was Morgiana — Ali Baba's servant, a young woman sharper than any blade in the thieves' arsenal — who saved the household. She went to the courtyard for oil to cook dinner and heard a whisper from one of the jars: "Is it time, captain?"

Without hesitation, Morgiana whispered back: "Not yet." She checked each jar. Thirty-seven held thieves. Two held oil. She heated the oil to boiling and poured it into every jar that held a man.

When the captain crept out at midnight to signal his men, he found them dead. He fled into the night.

But he came back. Disguised as a cloth merchant, he befriended Ali Baba. He accepted a dinner invitation. He came to Ali Baba's house with a dagger hidden in his sleeve.

Morgiana recognized him. During dinner, she performed a traditional dance for the guest — and at the climax, plunged a knife into the captain's chest.

Ali Baba was horrified — for a moment. Then Morgiana showed him the dagger hidden in the dead man's sleeve. She had saved his life for the third time.

Ali Baba freed Morgiana, gave her a share of the treasure, and she married his son. The remaining treasure in the cave was used slowly, wisely, over many years — shared with the poor, invested in honest trade, never hoarded and never flaunted.

The story asks a question that still matters: what do you do when you find the cave? Cassim tried to take everything and lost his life. Ali Baba took what he needed and kept his. The difference between enough and everything is sometimes the difference between living and dying.

And the real treasure was Morgiana — a servant with the courage to act, the cleverness to think quickly, and the loyalty to protect someone who had treated her well. No gold coin in that cave was worth as much as her presence in Ali Baba's house.

💡 Moral of the Story

Greed destroys what contentment builds. Loyalty and cleverness are worth more than any treasure.