How does Ender's Game end?
Ender's final test at Command School turns out to be no test at all. Believing he is running a simulated battle against overwhelming bugger forces surrounding their homeworld, Ender orders the launch of the Molecular Disruption Device into the planet itself, sacrificing his fleet to do it. The device obliterates the planet and instantly stops the paralyzed bugger ships throughout the system. The watching I.F. commanders erupt in celebration, and only then does Mazer Rackham tell Ender the truth: there were no simulations. Every battle he fought at Command School was real, fought by actual human fleets relayed through ansible communication, and he has just destroyed the bugger species entirely, ending the Third Invasion for good. Ender is devastated, understanding that he has committed xenocide and become the killer he always feared he was becoming, no different from his brother Peter. It also comes out that both Stilson, the schoolyard bully Ender beat as a child, and Bonzo Madrid, the Battle School rival he fought in self-defense, died from the injuries Ender inflicted on them.
Back on Earth, Peter Wiggin's secret career as the political essayist "Locke" (with Valentine writing as "Demosthenes") has propelled him to real power; he eventually becomes Hegemon, the leader of a newly unified Earth. Ender, guilt-ridden and unable to face returning to Earth as a hero, joins a wave of human colonists instead and travels with Valentine to settle a new world — one of the very planets the buggers had colonized. He becomes the colony's governor.
While exploring, Ender discovers a structure that eerily matches the setting of the "giant's game" simulation he used to play back at Battle School. Inside, he finds a dormant hive queen egg. The queen communicates with him telepathically, revealing that the buggers had never understood humans to be a sentient, communicating race — by the time they realized their error, the wars were already underway. She explains that she deliberately drew Ender to this place and asks him to carry her unborn egg to a new, safe world where her species can be reborn.
Using what he learns from the queen, Ender writes a book called The Hive Queen under the pen name "Speaker for the Dead," telling the buggers' side of the story with unflinching honesty. Years later, an aging Peter — now in his seventies and in declining health — recognizes Ender as the author and asks him to write a similarly honest book about his own life; the result is The Hegemon. Together the two books inspire a new funeral custom across human worlds, in which a "Speaker for the Dead" tells the full, unvarnished truth about the deceased. The novel closes with Ender and Valentine leaving the colony behind, setting out across the stars in search of a planet where the hive queen's egg can finally be safely hatched.
✓ Fact-verified against independent sources
What happened in Ender's Game? (spoiler-safe refresher)
Andrew "Ender" Wiggin, a child prodigy recruited into the International Fleet's Battle School, has just ended humanity's war with the alien "buggers." Believing he was commanding a final simulated battle at Command School under the supervision of war hero Mazer Rackham, Ender in fact directed a real human fleet to destroy the bugger homeworld with a Molecular Disruption Device, annihilating the species entirely — a xenocide he did not know he was committing until after the fact. Along the way to this outcome, Ender's brutal but genius tactical mind was shaped by intense isolation engineered by his commanders (chiefly Colonel Graff), by his command of increasingly stacked battle simulations, and by two violent incidents in which he killed classmates in what he believed was self-defense: the bully Stilson back on Earth, and his jealous rival Bonzo Madrid at Battle School.
On Earth, Ender's siblings have taken very different paths. His sociopathic older brother Peter has been secretly building political influence writing as the pundit "Locke," with their sister Valentine writing opposite him as "Demosthenes"; by book's end Peter has risen to become Hegemon, the leader of a newly unified Earth government.
After learning the horrifying truth about what he's done, Ender is unable to return to Earth as the celebrated war hero he's been made into. Instead he joins a colonization effort with Valentine and becomes governor of a new human colony established on a former bugger world. There he discovers a hidden structure and, within it, a dormant hive queen egg. The queen communicates with him telepathically, revealing that the buggers had never grasped that humans were a sentient, communicating species until it was too late, and that she deliberately led Ender to her so he could carry her unborn egg to a safe new world where her species might be reborn.
Using what he learned from the queen, Ender anonymously writes The Hive Queen under the pseudonym "Speaker for the Dead," and later, at the request of an elderly Peter, writes The Hegemon about his brother's life. These two books spark a new funeral tradition across human worlds built around unflinching honesty about the dead. The book ends with Ender and Valentine leaving the colony to travel the stars, still searching for a world where the hive queen's egg can be safely hatched — the central open thread heading into the next book: Ender, carrying humanity's secret guilt and the last hope of an annihilated species, has not yet found that world.
✓ Safe to read before Ender Saga #2 — checked for later-book spoilers