Starship Troopers is a military science fiction novel by U.S. writer Robert A. Heinlein. Written in a few weeks in reaction to the U.S. suspending nuclear tests, the story was first published as a two-part serial in The Magazine of Fantasy & Science Fiction as Starship Soldier, and published as a book by G. P. Putnam’s Sons in December 1959.
The story is set in a future society ruled by a world government dominated by a military elite. The first-person narrative follows Juan “Johnny” Rico through his military service in the Mobile Infantry. Rico progresses from recruit to officer against the backdrop of an interstellar war between humans and an alien species known as “Arachnids” or “Bugs”. Interspersed with the primary plot are classroom scenes in which Rico and others discuss philosophical and moral issues, including aspects of suffrage, civic virtue, juvenile delinquency, and war; these discussions have been described as expounding Heinlein’s own political views. Starship Troopers has been identified with a tradition of militarism in U.S. science fiction, and draws parallels between the conflict between humans and the Bugs, and the Cold War. A coming-of-age novel, Starship Troopers also critiques U.S. society of the 1950s, argues that a lack of discipline had led to a moral decline, and advocates corporal and capital punishment.