Alibaba and his son live with his rich brother Cassim. Marjina and Zabba are two slave girls who work in Cassim’s house. Marjina and Alibaba’s son are in love with each other. Zabba is in league with Abu Hassan, who is the leader of a gang of thieves. Alibaba finds the thieves’ cave and becomes rich. Cassim’s wife insists on knowing the secret of his wealth. Alibaba tells his brother who goes to the cave but can’t get out as he’s forgotten the magic words. The thieves find him and kill him. Alibaba and his son find Cassim and bring his body back for burial. Abu Hassan finds out about Alibaba, and the story then follows Marjina outsmarting Abu Hassan who comes visiting as a merchant.