Fantasy is a type of writing where magic or other supernatural things play a big role in the story, the theme, or the setting. While there is a lot of overlap between science fiction, fantasy, and horror, fantasy tends to avoid technological and macabre themes, setting itself apart from those two genres.