New research suggests that our immune system may play an active role in shaping the digestive-tract flora, which is tightly linked to health and disease.