Harry Potter and the Goblet of Fire is a 2005 fantasy adventure film, based on J. K. Rowling's novel of the same name. The film is the fourth installment in the Harry Potter film series, although 1492 Pictures decided to leave the series. The film was directed by Mike Newell and produced by David Heyman. The screenplay was penned by Steve Kloves. The film stars Daniel Radcliffe, Rupert Grint and Emma Watson as Harry Potter, Ron Weasley and Hermione Granger respectively. The film is set during the trio's fourth year at Hogwarts School of Witchcraft and Wizardry. A highly dangerous competition, the Triwizard Tournament, is being held at Hogwarts with only one student from each of the three competing schools selected to take part, but mystery occurs when the Goblet of Fire chooses Harry Potter as a fourth competitor. Filming began in early 2004 and the scenes of Hogwarts took place at the Leavesden Film Studios.