Military science fiction is a subgenre of science fiction that features the use of science fiction technology, mainly weapons, for military purposes and usually principal characters that are members of a military organization involved in military activity; occurring sometimes in outer space or on a different planet or planets. It exists in literature, comics, film, and video games.
A detailed description of the conflict, the tactics and weapons used for it, and the role of a military service and the individual members of that military organization forms 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 of similar characteristics, battleships replaced by space battleships and certain events changed so that the author can extrapolate what might have occurred.
Traditional military values of bravery, sacrifice, sense of duty, and camaraderie are emphasized, and the action is usually described from the point of view of a soldier 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. For example, women may be accepted as equal partners for combat roles. In many military sci-fi stories, technological advances are basic to plot development, but battles are often won more by cleverness or bravery than by technology.
Several subsets of military science fiction overlap with space opera, concentrating on large-scale space battles with futuristic weapons. At one extreme, the genre is used to speculate about future wars involving space travel, or the effects of such a war on humans; at the other, it consists of the use of military fiction plots with some superficial science fiction trappings. The term "military space opera" is occasionally used to denote this subgenre, as used for example by critic Sylvia Kelso when describing Lois McMaster Bujold's Vorkosigan Saga. Another example of military space opera would be the Battlestar Galactica franchise.