Gandalf, fictional character, a wise wizard who guides and advises the hobbits Bilbo and Frodo Baggins throughout their many adventures in J.R.R. Tolkien’s The Hobbit (1937) and The Lord of the Rings (1954–55).