Scientists discover immune genes influence which gut bacteria live in animals by studying a tiny island bird population.