First animation voicing
Williams voiced characters in several animated films. His voice role as the Genie in the animated musical Aladdin (1992) was written for him. The film's directors stated that they took a risk by writing the role. At first, Williams refused the role since it was a Disney movie, and he did not want the studio profiting by selling merchandise based on the movie. He accepted the role with certain conditions: "I'm doing it basically because I want to be part of this animation tradition. I want something for my children. One deal is, I just don't want to sell anything—as in Burger King, as in toys, as in stuff." Williams improvised much of his dialogue, recording approximately 30 hours of tape, and impersonated dozens of celebrities, including Ed Sullivan, Jack Nicholson, Robert De Niro, Groucho Marx, Rodney Dangerfield, William F. Buckley, Peter Lorre, Arnold Schwarzenegger, and Arsenio Hall. His role in Aladdin became one of his most recognized and best-loved, and the film was the highest-grossing of 1992; it won numerous awards, including a Golden Globe for Williams. His performance led the way for other animated films to incorporate actors with more star power. He was named a Disney Legend in 2009.