Oz the Great and Powerful is a 2013 American fantasy adventure film directed by Sam Raimi and written by David Lindsay-Abaire and Mitchell Kapner from a story by Kapner. Based on L. Frank Baum's early 20th century Oz novels and set 20 years before the events of the original 1900 novel, the film is a spiritual prequel to the 1939 Metro-Goldwyn-Mayer film The Wizard of Oz. Starring James Franco in the title role, Mila Kunis, Rachel Weisz, Michelle Williams, Zach Braff, Bill Cobbs, Joey King, and Tony Cox, the film tells the story of Oscar Diggs, a deceptive magician who arrives in the Land of Oz and encounters three witches: Theodora, Evanora, and Glinda. Oscar is then enlisted to restore order in Oz while struggling to resolve conflicts with the witches and himself.