Charlie and the Chocolate Factory is a 2005 British-American musical fantasy film directed by Tim Burton. The screenplay by John August is the second adaptation of the 1964 British book of the same name by Roald Dahl. The film stars Johnny Depp as Willy Wonka and Freddie Highmore as Charlie Bucket. The storyline concerns Charlie, who wins a contest and is, along with four other contest winners, subsequently led by Wonka on a tour of his chocolate factory; the most magnificent in the world.
Development for another adaptation of Charlie and the Chocolate Factory, filmed previously as Willy Wonka & the Chocolate Factory, began in 1991, 20 years after the first film version, which resulted in Warner Bros. providing the Dahl Estate with total artistic control. Prior to Burton's involvement, directors such as Gary Ross, Rob Minkoff, Martin Scorsese and Tom Shadyac had been involved, while actors Bill Murray, Nicolas Cage, Jim Carrey, Michael Keaton, Brad Pitt, Will Smith, Adam Sandler, and many others, were either in discussion with or considered by the studio to play Wonka.
Burton immediately brought regular collaborators Depp and Danny Elfman aboard. Charlie and the Chocolate Factory represents the first time since The Nightmare Before Christmas that Elfman contributed to a film score using written songs and his vocals. Filming took place from June to December 2004 at Pinewood Studios in the United Kingdom, where Burton avoided using digital effects as much as possible. Charlie and the Chocolate Factory was released to critical praise and was a box office success, grossing approximately $475 million worldwide.