Ali Baba gathers firewood in the forest, and one day, by chance, he finds a group of forty thieves visiting their treasure kept in a secret cave. When the thieves leave, Ali Baba enters the cave and takes one bag of gold coins.