Alibaba, (Dharmendra) a native of Guleba is in love with Marjina (Hema Malini). The town has a ruler, Abu Hasan. Guleban is terrorized by dacoits. Ali Baba hears the password to the door of the cave of the dacoits and takes a lot of jewels from the cave. His brother is killed by the dacoits as he forgets the password and is trapped inside. A young girl whose father has been murdered by the dacoits (Zeenat Aman) has a score to settle with Abu Hasan. Abu Hasan turns out to be the head of the dacoits and he comes to know that Ali Baba visits the cave. He hides the 40 thieves in large urns to kill Ali Baba. Ali Baba comes to know of this and kills them all. He brings to light the startling truth that their own ruler heads the dacoits!
The story is about a poor lad named Ali Baba (Dharmendra) who lives in the town of Gulabad, somewhere in central Asia, with his mother and elder brother Qasim who owns a small petty shop. Ali Baba's father Yousuf is a merchant in a faraway land who has never returned since he last left when Ali Baba was born. So poor Ali Baba makes a living out of selling timber cut from the hills. Gulabad is terrorized by a band of 40 dacoits. They hide their loot in a magical cave in the deserted hills. When the bandit leader recites the magical spell it opens and when he says another spell it closes. When news reaches them that his father has gone missing, Ali Baba goes in his search and not only finds his father, but also rescues princess Marjeena (Hema Malini) from the guards of the king who murdered her father to become king. Both Marjeena and Ali Baba fall in love with each other. Then they are attacked, Marjeena is taken captive, and his father is killed. After burying his father, Ali Baba finds out that Marjeena is being sold in the slave market, he borrows money from Qasim, and uses that to pay for Marjeena, and brings her home. Qasim wants to recover his money, and as a result decides to evict Ali Baba from their family home. Ali Baba and his mother leave the home. It is then the Khazi of the region announces a reward for the capture of notorious bandit Abu Hassan. A young girl named Fatima (Zeenat Aman) whose father has been murdered by the dacoits has a score to settle with Abu Hassan (Rolan Bykov). Fatima pledges her support to Ali Baba in killing Abu Hassan. Shortly, thereafter Ali Baba comes to know the secret hideout of Abu Hassan and its magic spells to open it. He also gets some gold and jewelry from there, which he distributes amongst villagers for diverting some water to their parched land. Ali Baba’s greedy brother Qasim lures Ali Baba into telling him where the cave is and those magic spells. Out of greed Qasim takes so much gold jewelry and coin as a result of which he forgets the spell to reopen the door and gets stuck inside. When the dacoits find him they kill him. Ali Baba then informs the Khazi about Abu Hassan's hideout. What Ali Baba does not know is that the Khazi and Abu Hassan is the same person, and that the Khazi has given instructions to his men to ensure that Ali Baba is killed, so that no one can get their hands on his treasure. Abu Hassan hides the 40 thieves in large urns to kill Ali Baba. Ali Baba comes to know of this and kills them all with the help of Fatima. He brings to light the startling truth that their own ruler heads the dacoits.
Sign up and get access to some cool features. Create watchlists, check in at movies, rate them or even write whole reviews! You can also share literally everything on Moviebuff with your friends, enemies, frenemies, family, babysitter or pets. Is that enough incentive for you?