Watch Ian McKellen Delight Students by Giving Advice as Gandalf

Gandalf gets very passionate about education
Warner Bros.

Sir Ian McKellan has an unusual method for encouraging students to pursue their precious education. 

The actor, known for playing Gandalf in the Lord of the Rings and Hobbit films, stopped by Chew Valley School in England to offer some words of wisdom.

McKellen goes into full-on Gandalf mode as he puts one of his iconic lines into a very different context. 

See more All Is Lost in New 'The Hobbit: Battle of the Five Armies' Posters

Needless to say, the students enjoyed the impromptu performance, breaking out in a round of applause.

See the video clip below. 

Twitter: @_RyanGajewski