Mystra, the Mother of All Magic, is the closest thing to a current god of magic in the DnD universe. Mystra’s predecessor Mystryl sacrificed herself to stop the Weave from being destroyed when an archwizard named Karsus stole her powers temporarily using a 12th-level spell. Over time Mystryl reincarnated into Mystra.