The Sword of Ali Baba is a 1965 American adventure film from Universal Pictures, directed by Virgil W. Vogel and written by Edmund Hartmann and Oscar Brodney.
[1][2][3] In the immediate aftermath of the successful Mongolian conquest of Bagdad by Hulagu Khan, the caliph Hassan escapes captivity, together with his young son Ali, while he prepares to regroup the remnants of his troops.
Ten years later, the band of thieves have become a group of Robin Hood-style resistance fighters, raiding the Mongols and giving to their poor and downtrodden people.
Hurt by his words and in growing admiration for him and his cause, she asks her servant and bodyguard, Jamiel, who hero-worships the 40 thieves, to give Ali water for the trip.
When Amara enters the garden, Ali recognizes her as his lost love, and with his re-awakened feelings he decides to release her without waiting for her father.
In order to reach the palace unnoticed, he devises a plan to pose as a merchant from Basra who brings huge jars of oil as a wedding gift.
After discovering the exposure of the original plan, Ali decided to make a few changes: Most of his men came disguised in the crowd; others were hidden in jars not brought before the Khan.
While Ali's men attack the palace guards, he and Amara open the gates to the gathering mob, which storms in and overpowers the Mongols.