Noun:
* "The magician performed acts of magic." Here, "magic" refers to the art or practice of using supernatural powers.
Verb:
* "She tried to magic the dishes away." Here, "magic" means to perform a magical act or make something appear or disappear by magical means.
So, the way you use "magic" in a sentence will determine whether it's a noun or a verb.