A poor young man finds a magic lamp that possesses a genie, who will grant the boy three wishes if he sets him free from the lamp. The first wish is for him to be rich and wealthy. The second wish is for the genie to become his friend. The third wish is for the lamp to be destroyed so that the genie can leave the young man forever.