Aladdin is an impoverished young ne'er-do-well, dwelling in "one of the cities of China". He is recruited by a sorcerer from the Maghreb, who passes himself off as the brother of Aladdin's late father, Mustapha the tailor, 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 to persuade young Aladdin to retrieve a wonderful oil lamp (chirag) from a booby-trapped magic cave. After the sorcerer attempts to double-cross him, Aladdin finds himself trapped in the cave. Aladdin is still wearing a magic ring the sorcerer has lent him. When he rubs his hands in despair, he inadvertently rubs the ring and a jinnī (or "genie") appears and releases him from the cave, allowing him to return to his mother while in possession of the lamp. When his mother tries to clean the lamp, so they can sell it to buy food for their supper, a second far more powerful genie appears who is bound to do the bidding of the person holding the lamp.