In its broadest sense, "Fantasy Fiction" covers an immense number of works by many authors, from ancient myths and legends, to some recent works embraced by mainstream literary audiences (such as Neil Gaiman's best-selling novel American Gods) and much in-between.
Perhaps the commonest sub-genres of fantasy--or at least most commonly associated with the term "Fantasy"--are sword and sorcery and high fantasy, two closely related forms that typically describe tales featuring magic, brave knights, damsels in distress, and/or quests, set in a world or worlds quite different from modern-day Earth and usually inhabited by mythical creatures such as dragonss and unicorns. Works by J.R.R. Tolkien, Robert E. Howard, Fritz Leiber and others are sometimes classified as either Sword and Sorcery or High Fantasy.
As a genre, fantasy is both associated and contrasted with science fiction and horror fiction. All three genres feature elements of the fantastic, of making radical departures from reality or radical speculations about what reality might be like, or might have been like. Some writers and critics prefer the term Speculative fiction due to the frequent crossover from one genre to another.
Further blurring the definition, some suggest there is a distinction between "Fantasy" proper as a genre, and "the fantastic," the latter being a fantasy-like element in other fiction.
Comic fantasy -- especially the works of Terry Pratchett -- should also be mentioned here, which parodies the above ideas as well as ideas outside the genre, in a postmodern manner. This category might also include the so-called 'worst science fiction story ever published' The Eye of Argon.
Role playing games in turn spawned more fiction in the genre. Game companies have published fantasy novels set in their own fictional game universes; the Forgotten Realms and Battletech series are some of the more popular.
Similarly, series of novels based on fantasy films and TV series have found their own niche.
See list of fantasy authors for information about individual authors who write in this genre.