Sauron was one of the Maiar who sided with Melkor, becoming one of his most loyal and powerful companions, but after the War of Wrath and the defeat of his master, Sauron rose to the greatest enemy of the Free Peoples of Middle-earth during the Second and Third Eras.