Gandalf, a key character in J.R.R. Tolkien's Middle-earth legendarium, is not a human or an elf, but rather a Maia, an angelic being from the Undying Lands. This is confirmed in various sources, including the Tolkien Forum, Collider, Wikipedia, and Screen Rant
. In the middle of The Lord of the Rings, he becomes the head of the order of Wizards and is renamed Gandalf the White, marking a significant increase in his power and abilities
. Therefore, Gandalf's true race is that of a Maia, an angelic spirit of the same order as Sauron