Like most popular depictions of genies, Disney's Genie was originally a slave. Though he possessed "phenomenal cosmic powers", he was bound to an "itty-bitty living space" and could only use his powers when the owner of the lamp (his master) made a wish; he occasionally does things without granting a wish, but never anything that greatly affects the world around him. He is also bound by 3 laws; He can't kill anyone, he can't make people fall in love and he can't revive the dead. It is possible, however, that he can do the third one, but that, as he puts it; "It's not a pretty picture. I don't like doing it!". Each master has three such wishes, and cannot exceed this amount by wishing for more wishes. The lamp came into the possession of the character Aladdin during the course of the first film, and he remained in servitude until Aladdin used his third and final wish to grant Genie his freedom at the end of the film.
As well as largely driving the plot in the first movie, the Genie serves as a comic relief element in each of his appearances. He is shown to have shapeshifting abilities, which allow for many and varied sight gags. The Genie's supernatural disposition permits him to break the fourth wall, as well as parody real-life people and popular culture completely outside of the boundaries of the universe in which he is contained. Robin Williams is responsible for most of these because he improvised many of the lines in the film.
The Genie's true name, if he has one, has never been revealed; he answers to being called "Genie", and never says if he does have a real name.
Along with the character of Iago, Genie is one of the most well recognized of characters from Disney's Aladdin franchise.
John Musker and Ron Clements created the Genie with Robin Williams in mind, even though Disney studio chief Jeffrey Katzenberg suggested names such as John Candy, Steve Martin, and Eddie Murphy, Williams was approached and eventually accepted the role. Williams came for voice recording sessions during breaks in the shooting of his other two films at the time, Hook and Toys. Unusually for an animated film, much of Williams' dialogue was ad-libbed: for some scenes, Williams was given topics and dialogue suggestions, but allowed to improvise his lines. Aladdin Platinum Edition, Disc 2: Diamond in the Rough: The Making of Aladdin. It was estimated that Williams improvised 52 characters. Eric Goldberg, the supervising animator for the Genie, then reviewed Wiliams' recorded dialogue and selected the best gags and lines. Goldberg and his crew then created character animation to match Williams' jokes, puns, and impersonations.
The Genie made his debut in Aladdin (1992), where he is released from a magical oil lamp by the titular character in the collapsed Cave of Wonders. After he reveals that he can grant three wishes, he is duped into freeing Aladdin and Abu from the cave without using a wish. At a faraway oasis, the Genie is asked by Aladdin what he would wish for. The Genie admits he would wish for freedom, since he is a prisoner to his lamp and must follow the orders of the lamp's master. After accepting a promise from Aladdin that Aladdin would use the third wish to set the Genie free, the Genie grants Aladdin his first wish: making him a prince so he can marry Jasmine. The Genie goes into hiding after leading a parade to the Agrabah palace. The Genie is released again when Aladdin is shackled, gagged, and thrown off a cliff into the ocean by Jafar's guards. The Genie rescues Aladdin as the second wish after liberally interpreting Aladdin's nodding head. Later, Genie began to lose his respect when he sees that Aladdin has to break his promise by using the wish for Aladdin himself. The Genie's lamp is later stolen and delivered to Jafar by Iago, making Jafar Genie's new master. The Genie has no choice but to grant Jafar's first and second wish to become Sultan of Agrabah and the world's most powerful sorcerer. He is then made a slave with no purpose in life but to entertain the sadistic Jafar by tormenting the former Sultan. During the final fight between Aladdin and Jafar, the Genie is forced to grant Jafar's final wish to become an all-powerful Genie. However, the fulfillment of this wish causes Jafar to be imprisoned in a lamp of his own, which the Genie hurls into the desert, freeing Agrabah from his tyranny. While initially more than willing to sacrifice his freedom in order to allow Aladdin to be with Jasmine (saying, "You're not gonna find another girl like her in a million years. Believe me, I know. I've looked."), Aladdin decides to live up to his original promise and uses his final wish to free Genie from his lamp's power. (In this film Genie loses the bangles around his wrists which signifies his freedom from the lamp. In the sequel and all other appearances however, he still has them, possibly now as jewelry.) The now-free Genie leaves Agrabah to explore the world.
In the direct-to-video sequel The Return of Jafar (1994), the Genie returns to Agrabah, deciding that the world isn't all that great without Aladdin and Jasmine around him and that he can't live without them. He is later confronted by the newly-free Jafar in the Palace gardens and imprisoned alongside Abu. After being freed by a morally-confused Iago, the Genie informs Aladdin that the only way to dispose of Jafar permanently is to destroy his lamp before Jafar himself is wished free. The Genie later attempts to discreetly grab Jafar's lamp from Abis Mal, but ultimately fails, and assists Aladdin in the final battle against Jafar by shapeshifting into Aladdin in an attempt to distract Jafar while Aladdin grabs his lamp, but this fails as well. Genie is knocked out once Jafar throws him and does not wake until Iago throws Jafar's lamp into the lava pit.
The Genie has a major supporting role in the Aladdin television series, set between The Return of Jafar and King of Thieves. In the series, Genie also falls in love with another genie, named Eden. Being that his power lowered after his freedom, the villains in the series hold a better chance at succeeding but not extremely.
Genie returns in the series final installment. Genie prepares Aladdin and Jasmine grand wedding day that is soon disrupted by the legendary 40 theives. Genie then assits Aladdin in defeating the thieves who are after the oracle gift someone has bestowed on Aladdin and Jasmine. Genie along with the others learn Aladdin's father is the king og theives and watches over Jasmine as Aladdin find out more about his long lost father. Genie then tries to help Aladdin reunite with his father who is soon captured by his former band of theives. After all the drama, Genie celebrates Aladdin and Jasmine nighttime wedding.
Role in the series
Genie reprises his role from the films, and is now a member of the Jungle Adventures Crew. cause of this, he turned down Aladdin's request to join the louge to help them save Jasmine, but made up for it by recimending Merlin of the disney universe saying he's just as good.