Charlie and the Chocolate Factory is a 2005 musical fantasy film directed by Tim Burton and based on the 1964 novel of the same name by Roald Dahl. Freddie Highmore stars as Charlie Bucket, a young boy who wins a golden ticket to visit the mysterious Willy Wonka's chocolate factory. The film follows Charlie's adventures inside the factory, where he encounters eccentric characters and experiences magical and sometimes dangerous situations. Charlie and the Chocolate Factory received positive reviews for its visual effects, performances, and faithful adaptation of Dahl's whimsical story.