Ali Baba was a poor woodcutter. One day, he was in the forest. He saw forty thieves on horses. They stopped in front of a big rock. The leader of the thieves said, "Open Sesame!" A door in the rock opened. The thieves went inside. After a while, they came out. The leader said, "Close Sesame!" The door closed, and the thieves rode away.
Ali Baba was very surprised. He went to the rock. He said, "Open Sesame!" The door opened. Inside, the cave was full of gold, jewels, and treasure. Ali Baba took some gold coins and went home. He told his wife about the secret cave.
Ali Baba had a rich brother named Cassim. Cassim was greedy. He saw Ali Baba's new gold and asked many questions. Ali Baba told him about the cave. Cassim went to the forest immediately. He found the rock and said, "Open Sesame!" The door opened. The cave was full of more treasure than he imagined. He gathered as much gold as he could carry.
But when he tried to leave, he forgot the magic words. He said, "Open Barley!" Nothing happened. He tried many words, but the door stayed shut. The thieves returned and found him inside. They were very angry and killed him.
The thieves discovered that someone else knew their secret. They found Ali Baba's house. The leader marked the door with a white X. He planned to come back at night with his men.
However, Morgiana, Ali Baba's clever servant, saw the mark. She understood the danger. She made the same mark on every door in the street. When the thieves returned, they were confused. They could not find the right house.
The leader tried again. He came to Ali Baba's house disguised as an oil merchant. He brought forty large jars. One jar was full of oil. The other thirty-nine jars had a thief hidden inside each one. The plan was for the thieves to jump out at night.
Morgiana needed oil for the lamps. She went to the jars. She heard a whisper from one jar. She was very clever. She understood the plan. She took a big pot of hot oil and poured it into each jar, killing the hidden thieves.
When the leader came out, Morgiana killed him with a knife. Ali Baba was safe. He was very grateful to Morgiana. He gave her her freedom and she married his son. Ali Baba learned the magic words and used the treasure wisely. He never forgot how cleverness had saved his life.