Magic in fiction is the endowment of characters or objects in works of fiction with powers that do not naturally occur in the real world.
Magic often serves as a plot device and has long been a component of fiction, from the days of Homer and Apuleius down through the tales of the Holy Grail and King Arthur, to more contemporary authors such as J. R. R. Tolkien, C. S. Lewis, Ursula K. Le Guin, Robert Jordan, Terry Brooks, J. K. Rowling, Mercedes Lackey, and Derek Landy.
Historically, witches such as the Weird Sisters in William Shakespeare's Macbeth, wizards such as Prospero in The Tempest or characters like Doctor Faustus in Christopher Marlowe's play of the same name were widely considered to be real.:1027 Contemporary authors tend to treat magic as an imaginary idea, opting to build their worlds with a blank slate where the laws of reality do not carry as much weight.:1027