A new study reveals how Wolbachia bacteria manipulate parasitic wasps to produce only female offspring. These bacteria have borrowed sex-determining genes from other insects and use them to create proteins that turn male eggs into females, ensuring their own transmission.