Dramatic differences in gut bacterial densities help to explain the relationship between diet and habitat in rainforest ants.