Science fiction

Alien invasion featured in H. G. Wells' 1897 novel The War of the Worlds, as illustrated by Henrique Alvim Corrêa.

Science fiction (sometimes shortened to SF or sci-fi) is a genre of speculative fiction, which typically deals with imaginative and futuristic concepts such as advanced science and technology, space exploration, time travel, parallel universes, and extraterrestrial life. It often explores human responses to changes in science and technology.

Science fiction is related to fantasy, horror, and superhero fiction and contains many subgenres. Its exact definition has long been disputed among authors, critics, scholars, and readers. Subgenres include hard science fiction, which emphasizes scientific accuracy, and soft science fiction, focusing on social sciences. Other notable subgenres are cyberpunk, which explores the interface between technology and society, and climate fiction, addressing environmental issues.

Precedents for science fiction are argued to exist as far back as antiquity, but the modern genre primarily arose in the 19th and early 20th centuries when popular writers began looking to technological progress and speculation. Mary Shelley's Frankenstein, written in 1818, is often credited as the first true science fiction novel. Jules Verne and H.G. Wells are pivotal figures in the genre's development. In the 20th century, expanded with the introduction of space operas, dystopian literature, pulp magazines, and the Golden Age of Science Fiction.

Science fiction has been called the "literature of ideas", and continues to evolve, incorporating diverse voices and themes, influencing not just literature but film, TV, and culture at large. Besides providing entertainment it can also criticize present-day society and explore alternatives, and inspiration a "sense of wonder".