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 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 who releases him from the cave, allowing him to return to his mother while in possession of the lamp.