Aladdin and the Magic Lamp is a folk tale of Middle Eastern origin. It is one of the tales in The Book of One Thousand and One Nights.
Aladdin is an impoverished young Lad living in “one of the cities of China“. He is recruited by a sorcerer from the Maghreb, who passes himself off as Aladdin’s uncle, the brother of Aladdin’s late father, Mustapha the tailor. After convincing Aladdin and his mother of his good will by pretending to set up the lad as a wealthy merchant, the sorcerer’s real motive is revealed.
He persuades young Aladdin to retrieve a wonderful oil lamp from a booby-trapped magic cave. After the sorcerer attempts to double-cross him, Aladdin finds himself trapped in the cave. Fortunately, Aladdin is still wearing a magic ring the sorcerer gave him. When he rubs his hands together in despair, he inadvertently rubs the ring and a jinnī (or “genie”) appears and releases him from the cave so that he can return to his mother. Fortunately for Aladdin, he still carries the lamp….