Aladdin, a kind young man in the Arab city of Agraba with monkey Abu, saved Princess Jasmine and became friends with her in an encounter. Minister Jia Fang planned to overthrow Jasmine's father and become a sultan. Aladdin and Princess Jasmine and others revealed Jia Fang's ambitions in front of the Sultan and put him in jail. Iger stole the dungeon key and released Jia Fang. Jia Fang stole the magic lamp from Aladdin in the street and became a Sudanese and The most powerful wizard in the world. Aladdin was anxious to ridicule Jia Fang for being second only to the elves in terms of primitive power, thereby deceiving him to use his last desire to become "the most powerful being in the universe." So he turned Jia Fang into an elf and then threw Jia Fang's lamp back into the original cave, and in the end Aladdin kept his promise and released his elf with his last wish to make him human. The sultan gave Jasmine an ancestral ring, making her the next sultan in Agraba, marrying Jasmine and starting a new life.