Military science fiction is a subgenre of science fiction and military fiction that depicts the use of science fiction technology, including spaceships and weapons, for military purposes and usually principal characters who are members of a military organization, usually during a war; occurring sometimes in outer space or on a different planet or planets. It exists in a range of media, including literature, comics, film, television and video games.

thumb|right|200px|A poster for a science fiction film depicts space battles, [[Battle in Outer Space (1959).]]

A detailed description of the conflict, belligerents (which may involve extraterrestrials), tactics and weapons used for it, and the role of a military service and the individual members of that military organization form the basis for a typical work of military science fiction. The stories often use features of actual past or current Earth conflicts, with countries being replaced by planets or galaxies with similar characteristics, battleships replaced by space battleships, small arms and artillery replaced by lasers, soldiers replaced by space marines, and certain events changed so the author can extrapolate what might have occurred.

Characteristics

Traditional military values of courage under fire, sense of duty, honor, sacrifice, loyalty, and camaraderie are often emphasized. The action is typically described from the point of view of a soldier in a science fictional setting of or near battle. Typically, the technology is more advanced than that of the present and described in detail. In some stories, however, technology is fairly static, and weapons that would be familiar to present-day soldiers are used, but other aspects of society have changed. Technology may not be emphasized in such stories as much as other aspects of the characters' military lives, cultures, or societies. For example, women may be accepted as equal partners for combat roles, or preferred over men.

When the "extravagan[t]" depictions of war in space operas faded along with pulp fiction more generally, military science fiction developed with a "more disciplined and more realistic notion of the kind of armies which might fight interplanetary and interstellar wars, and the kinds of weapons they might use". Examples that feature aspects of both military science fiction and space opera include the Battlestar Galactica franchise and Robert A. Heinlein's 1959 novel Starship Troopers.

A key distinction of military science fiction from space opera is that space operas focus more on adventurous stories and melodrama, while military science fiction focuses more on warfare and technical aspects. The principal characters in a space opera are also not military personnel, but civilians or paramilitary. Stories in both subgenres often concern an interstellar war in which humans fight themselves and/or nonhuman entities. Military science fiction, however, is not necessarily set in outer space or on multiple worlds, as in space opera and the space Western.

Both military science fiction and the space Western may consider an interstellar war and oppression by a galactic empire as the story's backdrop. They may focus on a lone gunslinger, soldier, or veteran in a futuristic space frontier setting. Western elements and conventions in military science fiction may be explicit, such as cowboys in outer space, or more subtle, as in a space colony requiring defense against attack out on the frontier. Gene Roddenberry described Star Trek: The Original Series as a Space Western (or more poetically, as "Wagon Train to the stars"). The TV series Firefly and its cinematic follow-up Serenity literalized the Western aspects of the space Western subgenre as popularized by Star Trek: it features frontier towns, horses, and a visual style evocative of classic John Ford Westerns. Worlds that have been terraformed may be depicted as presenting similar challenges as that of a frontier settlement in a classic Western. Six-shooters and horses may be replaced by ray guns and rockets.

A "thematic subdivision" of MSF are works where "ex-military protagonists [are] drawing on their battle experience for tough and violent operations in (more or less) civilian life", typically in a law enforcement setting. Some examples include Richard Morgan's Takashi Kovacs book such as Altered Carbon (2002) and Elizabeth Bear's Jenny Casey books, such as Hammered (2004).

History

19th century and up to early 20th century

thumb|right|200px|A 1922 illustration, drawn by illustrator Frank R. Paul, of inventor [[Nikola Tesla's speculative vision of what war will be like in the future, as described by him.]]

Precursors for military science fiction can be found in "future war" stories dating back at least to George Chesney's story "The Battle of Dorking" (1871). Written just after the Prussian victory in the Franco-Prussian War, it describes an invasion of Britain by a German-speaking country in which the Royal Navy is destroyed by a futuristic wonder-weapon ("fatal engines").

Other works of military science fiction followed, including H.G. Wells's "The Land Ironclads". It described tank-like "land ironclads," armoured fighting vehicles that carry riflemen, engineers, and a captain, and are armed with semi-automatic rifles.

Post-WWII era

thumb|right|200px|A poster for a 2022 fan-made film based on [[Robert Heinlein's Starship Troopers. Both the novel and film of the same name and sequel films like this one depict space marines who fight in planets across the galaxy.]]

Eventually, as science fiction became an established and separate genre, military science fiction established itself as a subgenre. One such work is H. Beam Piper's Uller Uprising (1952) (based on the events of the Sepoy Mutiny). Robert A. Heinlein's Starship Troopers (1959) is another work of military science fiction, along with Gordon Dickson's Dorsai (1960), and these are thought to be mostly responsible for popularizing this subgenre's popularity among young readers of the time.

The Vietnam War led to the "polarization of the sf community", which can be seen in the June 1968 issue of Galaxy Science Fiction, in which one page of pro-war sf authors listed their names and on another page, anti-war sf authors put their names.

Practical applications by military

In 1980 and 1981, two science fiction authors inspired President Ronald Reagan's vision for a Strategic Defense Initiative in which satellites would be set up to shoot at nuclear missiles. The two authors were Larry Niven, the author of the Ringworld series, and Jerry Pournelle. Along with like-minded colleagues, they formed a committee to lobby the United States on space issues and influence Reagan's space policies. Pournelle advocated a "robust, technocratic military state". The French military says the authors are asked to imagine warfare situations that "destabilize us, scare us, blame, or even beat us", in order to provide the army with a "fresh set of practice scenarios".