A fantasy world is a fictional universe created in fiction media, such as literature, film or games. Typical fantasy worlds involve magic or magical abilities, nonexistent technology  and sometimes, either an historical or futuristic theme. Some worlds may be a parallel world tenuously connected to Earth via magical portals or items; a fictional Earth set in the remote past or future; or an entirely independent world set in another universe.
Many fantasy worlds draw heavily on real world history, geography and sociology, and also on mythology and folklore.
The setting of a fantasy work is often of great importance to the plot and characters of the story. The setting itself can be imperiled by the evil of the story, suffer a calamity, and be restored by the transformation the story brings about. Stories that use the setting as merely a backdrop for the story have been criticized for their failure to use it fully.
Even when the land itself is not in danger, it is often used symbolically, for thematic purposes, and to underscore moods.
Early fantasy worlds appeared as fantasy lands, part of the same planet but separated by geographical barriers. For example, Oz, though a fantasy world in every way, is described as part of this world.
Although medieval peasants who seldom if ever traveled far from their villages could not conclusively say that it was impossible that, for example, an ogre could live a day's travel away, distant continents were necessary from the Renaissance onwards for such fantastic speculation to be plausible, until finally, further exploration rendered all such terrestrial fantasy lands implausible.
An early example of the fantasy land/world concept can be seen in the One Thousand and One Nights (Arabian Nights), where places of which little was known, but where the occurrence of marvels was thus more credible, had to be set "long ago" or "far away". This is a process that continues, and finally culminates in the fantasy world having little connection, if any, to actual times and places. A more recent example of a fantasy land with definite connections to the actual world is Austin Tappan Wright's Islandia. Islandia's remoteness and aura of mystery, as well as its preservation of an arcadian society, are explained by means of a law which allows only limited contact with foreigners.
Dream frames were also once common for encasing the fantasy world with an explanation of its marvels. Such a dream frame was added to the story of The Wonderful Wizard of Oz for the movie version; in the book, Oz is clearly defined as an actual place. H.P. Lovecraft made active use of the dream frame, creating elaborate geographies accessible to humans only when they were asleep and dreaming. These dream-settings have been criticized, and are far less frequent today.
This change is part of a general trend toward more self-consistent and substantive fantasy worlds. This has also altered the nature of the plots; earlier works often feature a solitary individual whose adventures in the fantasy world are of personal significiance, and where the world clearly exists to give scope to these adventures, and later works more often feature characters in a social web, where their actions are to save the world and those in it from peril.
The most common fantasy world is one based on medieval Europe, and has been since William Morris used it in his early fantasy works, such as The Well at the World's End. and particularly since the 1954 publication of J.R.R. Tolkien's The Lord of the Rings. Such a world is often called "pseudo-medieval" – particularly when the writer has snatched up random elements from the era, which covered a thousand years and a continent, and thrown them together without consideration for their compatibility, or even introduced ideas not so much based on the medieval era as on romanticized views of it. When these worlds are copied not so much from history as from other fantasy works, there is a heavy tendency to uniformity and lack of realism. The full width and breadth of the medieval era is seldom drawn upon. Governments, for instance, tend to be uncompromisingly feudal-based, or evil empires or oligarchies, usually corrupt, while there was far more variety of rule in the actual Middle Ages. Fantasy worlds also tend to be medieval in economy, and disproportionately pastoral.
Careful world-building plus meticulous attention to detail is often cited as the reason why certain fantasy works are deeply convincing and contain a magical sense of place. Heavy and faithful use of real world setting for inspiration, as in Barry Hughart's Bridge of Birds, clearly derived from China, or Lloyd Alexander's use of real world cultures such as Welsh for The Chronicles of Prydain or Indian for The Iron Ring, make the line between fantasy worlds and alternate histories fuzzy. The use of cultural elements, and still more history and geography, from actual settings pushes a work toward alternative history.
Conversely, the creation by an author of an imaginary country—such as Ruritania or Graustark—does not automatically transform that imaginary country into a fantasy world, even if the location would be impossible in reality owing to a lack of land to contain it; but such Ruritanian romances may be pushed toward the category of fantasy worlds by the introduction of, say, witches and wise women, where it is not clear if their magic is effectual.
According to Lin Carter in Imaginary Worlds: the Art of Fantasy, fantasy worlds, by their nature, contain some element of magic (paranormal). This element may be the creatures in it (dragons, unicorns, genies and so on) or the magical abilities of the people inhabiting the world. These are often drawn from mythology and folklore, frequently that of the historical country also used for inspiration.
Fantasy worlds created through a process called world building are known as a constructed world. Constructed worlds elaborate and make self-consistent the setting of a fantasy work. World building often relies on materials and concepts taken from the real world.
Despite the use of magic or other fantastic elements such as dragons, the world is normally presented as one that would function normally, one in which people could actually live, making economic, historical, and ecological sense. It is considered a flaw to have, for example, pirates living in lands far from trade routes, or to assign prices for a night's stay in an inn that would equate to several years' income for a farmer.
Furthermore, the fantastic elements should ideally operate according to self-consistent rules of their own; for example, if wizards' spells sap their strength, a wizard who does not appear to suffer this must either be putting up a facade, or have an alternative explanation. This distinguishes fantasy worlds from surrealism and even from such dream worlds as are found in Alice's Adventures in Wonderland and Through the Looking-Glass.
- L. Frank Baum, author of The Wonderful Wizard of Oz and its original sequels. He was one of the few authors before Tolkien to use consistent internal geographies and histories to enrich his world.
- C. S. Lewis, author of The Chronicles of Narnia, which takes place primarily in a magical land called Narnia. A colleague of Tolkien, their fiction worlds share several key elements.
- Terry Pratchett created Discworld, a large disc resting on the backs of four huge elephants, which are in turn standing on the back of an enormous turtle, as it slowly swims through space.
- J. K. Rowling, author of the Harry Potter series, created the Harry Potter universe.
- J. R. R. Tolkien created Middle-earth, a famous fantasy world, especially in the 20th century. He introduced several revolutionary concepts to fantasy fiction popularized the idea of intricately detailed fantasy worlds. He wrote at some length about the process, which he called "sub-creation".
- George R. R. Martin created a fictional world for A Song of Ice and Fire. Martin said in 2003 that complete world maps were deliberately not made available so that readers may better identify with people of the real Middle Ages who were unilluminated about distant places. Most of the story is set in the western continent of Westeros, though some is set in the Eastern continent Essos. The Southern continent of Sothoryos is also shown on maps, with a possible fourth continent, Ulthos, to its East. A map of the world is shown in the title sequence of the HBO TV adaptation, Game of Thrones.
Fairytale and comic fantasy
Fairytale fantasy may ignore the normal world-building in order to present a world operating by the same logic as the fairytales from which they are derived, though other works in this subgenre develop their worlds fully. Comic fantasy may ignore all possible logic in search of humor, particularly if it is parodying other fantasies' faulty world-building, as in Diana Wynne Jones's Dark Lord of Derkholm, or the illogic of the setting is integral to the comedy, as in L. Sprague de Camp's Solomon's Stone, where the fantasy world is populated by the heroic and glamorous figures that people daydream about being, resulting in a severe shortage of workers in the more mundane, day-to-day industries. Most other subgenres of fantasy suffer if the world-building is neglected.
The retreat of magic
Rather than creating their own fantasy world, many authors choose to set their novels in Earth's past. In order to explain the absence of miraculous elements, authors may introduce "a retreat of magic" (sometimes called "thinning") that explains why the magic and other fantastic elements no longer appear: For example, in The Lord of the Rings, the destruction of the One Ring not only defeated Sauron, but destroyed the power of the Three Rings of the elves, resulting in their sailing into the West at the end of the story. A contemporary fantasy necessarily takes place in what purports to be the real world, and not a fantasy world. It may, however, include references to such a retreat. J. K. Rowling's Fantastic Beasts and Where to Find Them explains that wizards eventually decided to conceal all magic creatures and artifacts from non-magic users.
Dungeons & Dragons, the first major role-playing game, has created several detailed and commercially successful fantasy worlds (called "campaign settings"), with established and recognizable characters, locations, histories, and sociologies. The Forgotten Realms is perhaps the most extensively developed of these worlds. These elements of detail can be a large part of what attracts people to RPGs.
Many established fantasy writers have also derided Dungeons and Dragons and the fantasy fiction it has inspired due to its influencing new writers toward reading the Dungeons & Dragons Monster Manual instead of studying the original literature and mythology from which modern fantasy literature has sprung.
Due to the fuzzy boundary between fantasy and science fiction, it is similarly difficult to make a hard-and-fast distinction between "fantasy worlds" and planets in science fiction. For example, the worlds of Barsoom, Darkover, Gor, and the Witch World combine elements of both genres.
- Brian Attebery, The Fantasy Tradition in American Literature, p 166-7, ISBN 0-253-35665-2
- John Grant and John Clute, The Encyclopedia of Fantasy, "Imaginary lands", p 495-5 ISBN 0-312-19869-8
- John Grant and John Clute, The Encyclopedia of Fantasy, "Land", p 558 ISBN 0-312-19869-8
- John Grant and John Clute, The Encyclopedia of Fantasy, "Fantasyland", p 341 ISBN 0-312-19869-8
- Michael Moorcock, Wizardry & Wild Romance: A Study of Epic Fantasy p 72-3 ISBN 1-932265-07-4
- John Grant and John Clute, The Encyclopedia of Fantasy, "Oz", p 739 ISBN 0-312-19869-8
- C. S. Lewis, "On Science Fiction", Of Other Worlds, p68 ISBN 0-15-667897-7
- L. Frank Baum, Michael Patrick Hearn, The Annotated Wizard of Oz, p 99, ISBN 0-517-50086-8
- John Grant and John Clute, The Encyclopedia of Fantasy, "Arabian fantasy", p 52 ISBN 0-312-19869-8
- L. Frank Baum, Michael Patrick Hearn, The Annotated Wizard of Oz, p 96, ISBN 0-517-50086-8
- J.R.R. Tolkien, "On Fairy-Stories", p 14, The Tolkien Reader, Ballantine Books, New York 1966
- Colin Manlove, Christian Fantasy: from 1200 to the Present p 210 ISBN 0-268-00790-X
- Colin Manlove, Christian Fantasy: from 1200 to the Present p 211-2 ISBN 0-268-00790-X
- Diana Waggoner, The Hills of Faraway: A Guide to Fantasy, p 37, ISBN 0-689-10846-X
- John Grant, "Gulliver Unravels: Generic Fantasy and the Loss of Subversion"
- Alec Austin, "Quality in Epic Fantasy"
- Jane Yolen, "Introduction" p viii After the King: Stories in Honor of J.R.R. Tolkien, ed, Martin H. Greenberg, ISBN 0-312-85175-8
- Philip Martin, The Writer's Guide to Fantasy Literature: From Dragon's Lair to Hero's Quest, p 113, ISBN 0-87116-195-8
- L. Sprague de Camp, Literary Swordsmen and Sorcerers: The Makers of Heroic Fantasy, p 6 ISBN 0-87054-076-9
- Carter, Lin, Imaginary Worlds, the Art of Fantasy. Ballantine, 1973.
- John Grant and John Clute, The Encyclopedia of Fantasy, "Thinning", p 942 ISBN 0-312-19869-8
- Bardic Web - A community for writers collaborating on original speculative and non-speculative fiction, worldbuilding, mythos creation and character development. No fanfic.
- The Santharian Dream - Creative, cooperative fantasy world building in the style of J.R.R. Tolkien. An epic, constantly evolving fantasy world on the web since 1998.