Aladdin tells of how he, a poor tailor, was recruited by the sorcerer to retrieve a magic lamp from a cave. When Aladdin returned to the cave entrance, the sorcerer demanded the lamp before letting him out. Aladdin refused, so the sorcerer sealed him in. Aladdin accidentally released one of the genies of the lamp and ordered it to take him home. He then courted and married Dinarsade. One night, Dinarsade, Aladdin's magnificent palace and the lamp disappeared. Blamed by the Caliph, Aladdin fled to avoid being executed. A storm at sea cast him ashore at Wak Wak. When he tried to pluck fruit from a "tree", it turned into a monster and grabbed him, but Achmed killed it. Achmed realizes the sorcerer had been behind this and is further enraged. He reveals to Aladdin that his palace and the lamp were stolen by the sorcerer because of his obsession for Dinarsade.