Gandalf is a fictional wizard in Lord of The Rings. He appears in The Hobbit, and also The Lord of the Rings Trilogy. He's also known as Gandalf the White. In the Peter Jackson film adaptations, Sir Ian McKellen plays the role of Gandalf.