Gandalf is actually not a “Grand Elf,” as the men who named him so had assumed, nor an old man as he physically appears to be, but is actually the Maia Olórin who had taken on a physical body at the bidding of Manwë in order to help put a stop to Sauron.