Ender's Game
During the Third Invasion, it became evident to the Buggers that they could not survive the war with the humans. In order to prevent their total destruction, The Formics prepared a location on one of their colonies for the Hive Queen to be left dormant as a cocoon. Using ansible communication, the Hive Queen accessed the memories of the human race's child prodigy and unknowing battle commander, Ender Wiggin, to better understand him. Using what they learned, the Formics made the landscape on one of their colonies close to Earth to look like that of Ender's most powerful memory (Fairyland, from the pseudo-sentient Mind Fantasy Game). Arriving as a colonist to that world, Ender eventually discovers the Hive Queen and takes her with him while exploring other colonies.
It is revealed that the Hive Queen's philotic connections allow her to communicate directly to Ender's mind. This is difficult at first, because as a queen she never needed words to communicate- the Formics instantly understood her. She gradually learns to communicate with him, however, and he promises to find her a new home for her to respawn her species. In addition, the Hive Queen helps Ender to write down the information concerning her life and the misunderstanding that led to the war. His finished work, titled "The Hive Queen," and published under the name "Speaker for the Dead," creates great sympathy for the Formics which generally leads humanity to come to regard Ender's actions as an evil act of xenocide. Ender travels to two dozen of the Hundred Colonies in this search, which due to the effects of relativistic space travel takes around three thousand years. While Ender aged only a few decades over this period, the Hive Queen is shown to have been fully aware in real time due to her philotic nature. She has become anxious to be released.
Read more about this topic: Hive Queen