A poor Arab woodcutter named Ali Baba learns by chance the password "Open Sesame" that opens the door to the cave where a gang hides their treasures. When Ali Baba takes all their treasures, the gang learns of his location from Ali Baba's spiteful neighbor, and they set out to recover their treasures and kill Ali Baba.