War has always been a part of science fiction. Even before the birth of SF as a standalone genre in 1926, speculative novels such as 'The Battle of Dorking' from 1871 showed how SF's trademark 'what if' scenarios could easily encompass warfare.
— Paul Di Filippo