Fact1: Marziana and Dowlath find refuge in Alibaba 's house, Fact2: Alibaba 's house lives with Ayisha and servant Bulbul, Fact3: Kasim cave 's wealth uses to help poor people nearby, Fact4: fight ensues between Alibaba and Kasim 's thugs, Fact5: Alibaba later is shocked to see brother dead
Output: Marziana, a Baghdadbased dancer, is abducted by the tyrant Sher Khan, commander of the notorious king Amir Kasim Khan, to his palace. She is rescued by Alibaba, an impoverished woodcutter who fights with Sher Khan and vanquishes him. Marziana and her sidekick Dowlath find refuge in Alibabas house who lives with his sister Ayisha and servant Bulbul. Marziana learns that they are the siblings of Kasim, who had driven them out at the instigation of his cruel wife Salima. Marziana and Alibaba later fall in love. One day, when Alibaba goes to cut wood, he chances upon the cavernous hideout of Abu Hussain, the notorious leader of forty dacoits, and overhears the secret code to enter and exit the cave. After the dacoits leave, Alibaba uses the code word, enters the hideout, and takes some of the caves wealth which he uses to help poor people nearby. Both Alibaba and Marziana become wealthy overnight. Kasim becomes jealous when he hears about his brothers fortune, and wants to know the secret behind this. Under Salimas guidance, he invites Alibaba and his household for a feast. After cunningly obtaining the secret of the dacoits cave, Kasim sentences Alibaba to death, falsely accusing him of attempted murder. Marziana pretends to heed Kasims order. She declares that Alibaba has been unfaithful to her and he deserves this retribution. Taking a knife, Marziana acts as though she means to kill Alibaba, but instead cuts the ropes that bind his hands. A fight ensues between Alibaba and Kasims thugs during which Salima is accidentally killed, but Alibaba subdues them and escapes with his allies. Kasim enters the cave and greedily starts collecting many treasures. He soon forgets the code word, and is left trapped. The dacoits arrive and kill him for entering their secret cave. Alibaba later visits the cave and is shocked to see his brother dead; he takes away the corpse. After Kasims death is announced publicly, Alibaba is declared the new king of Baghdad and everyone rejoices. Meanwhile, the dacoits return to their cave and find that Kasims corpse is missing. Realising that someone else has entered their cave, they start searching for the mystery person. From the cobbler Gulams assertion that the woodcutter Alibaba had become wealthy overnight, Abu Hussain realises that it is Alibaba who discovered the secret of his cave, but kills the cobbler afterwards. Having his men hide inside barrels, Abu Hussain comes to Alibabas house disguised as an oil merchant seeking shelter for the night. However, Marziana overhears him whispering to his men, and realises his true identity. When she dances at a banquet Alibaba hosts in honour of the guest, Dowlath and Bulbul roll the barrels one by one into the swirling waters as per the plan. After Marziana tries unsuccessfully to stab the oil merchant, she exposes him as Abu Hussain; Alibaba is shocked. This leads to a fight between the two men, which results in Abu Hussain kidnapping Marziana and fleeing to the cave. Alibaba chases him and reaches the cave where he kills Abu Hussain after an intense battle. After Alibaba rescues Marziana, they marry and continue to perform social work.