Genie is a fictional character from the Disney animated features canon movie Aladdin, as well as related series and sequels. For the original movie, his voice was provided by Robin Williams, though it was later taken over by Dan Castellaneta, after a contract dispute between Williams and the Walt Disney Company. Castellaneta continued to voice the Genie throughout Aladdin the Series, as well as the direct-to-video feature The Return of Jafar, before Williams reprised the role for the final installment of the franchise, Aladdin and the King of Thieves. Castellaneta also voiced Genie in the Kingdom Hearts series by Square Enix and Buena Vista Games.
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. Each master had three such wishes. The lamp came into the possession of the character Aladdin during the course of the first movie, and remained in servitude until the end of the movie, when Aladdin used his third and final wish to grant Genie his freedom.
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 incredible shape-shifting abilities, which allow for many and varied sight gags, and 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 fictional universe in which he is contained. Robin Williams is responsible for most of these because he improvised many of the lines in the film.
Along with the character of Iago the parrot, Genie is one of the most well recognized of characters from Disney's Aladdin franchise.