Certain bacteria have learned to manipulate the proportion of females and males in insect populations. Now researchers have mapped the entire genome of a bacterium that infects a close relative of the fruit fly. The findings reveal extremely high frequencies of gene exchange within this group of bacteria. In the future sex-manipulating bacteria may be used as environmentally friendly pesticides against harmful insects.