Sauron was a Maia, The Istari were also Maia. Sauron was seduced into the evil service of Melkor the evil Vala in the first age. You can learn more about Sauron and Melkor in the Silmarillion, an excellent read.
Sauron forged the One Ring in Mount Doom, much of his own power was placed into it.