"Ender's Game" by Orson Scott Card was first published in 1985. It is a military science fiction novel.
The story is set in Earth's future. It tells the story of an imperiled humans after thier two conflicts with the 'buggers', an insectoid alien species.