Speaker For The Dead
Eventually Ender responds to a call for a Speaker for the Dead from Lusitania, a small Catholic colony on the only planet of the third-discovered sentient race, the Pequeninos (the Piggies). Due to the fear of damaging the culture of the Piggies, the colony is restricted in growth as ordered by the Starways Congress. The Hive Queen points out to Ender that this makes the planet the best candidate for a new home, although he is unsure of whether the three races will be capable of living together in peace. Nonetheless, he agrees to investigate the possibility.
On the planet, the Hive Queen occasionally makes cryptic statements to Ender that she has made contact with the Pequeninos (philotically) and has shared information with them and agreed to live there in peace. After Ender and the Lusitanian colonists become more familiar with the culture of the Pequeninos, they form a treaty and agree to release the Hive Queen from dormancy once they can find a way to protect her from the native virus, the Descolada. At the conclusion of Speaker for the Dead, the Hive Queen is finally able to come forth and release her thousands of eggs, "undoing" Ender's act of xenocide.
Read more about this topic: Hive Queen