In Rag2−/− mice where colitis was triggered by Hb-infection, treatment with an anti-IL-7R antibody controlled innate inflammatory responses by reducing macrophage and dendritic cell numbers and their activity. Here, IL7R is linked to infection.