Ron Clements and John Musker, co-directors ofAladdin, spoke withE!
Newsand they confirmed what some fans have long thought about the peddler in the beginning of the film.
I saw something that speculates that the peddler at the beginning ofAladdinis the Genie, Clements said.

Credit: Buena Vista/Courtesy Everett Collection
He continued, That was the whole intention, originally.
Just through story changes and some editing, we lost the reveal at the end.
So, thats an urban legend that actually is true.
So, there you have it.
Really, the Genie was Robin Williams, said Clements.
When he first came in, he was like, Should I play this with an accent?
Should I create a character?
Musker added, I think Robin as a person, he wanted to make people laugh.
So I feel like, yeah, he really was the Genie.