science fiction subgenre
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 who are members of a military organization involved in military activity, usually during a war; 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 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 of similar characteristics, battleships replaced by space battleships, and certain events changed so the author can extrapolate what might have occurred.
Read more or edit on Wikipedia