Maiar
lesser Ainur · Gandalf, Sauron, Melian and the Balrogs were Maiar

The Maiar were lesser Ainur who served the Valar. Gandalf and the other Wizards, Melian, Sauron and the Balrogs were all Maiar.
From the Lord of the Rings Wiki (CC BY-SA).
Where and when Maiar appears
- Books
- The Lord of the Rings (TA 3018–3021)