Charlie and the Chocolate Factory is a 2005 musical fantasy film directed by Tim Burton and written by John August, based on 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.