Selective ablation of TSLP in dermis-resident macrophages reduces the numbers of IL-5+ type 2 innate lymphoid cells, eosinophils and dermis-resident macrophages, and ameliorates infection. This evidence concerns the gene TSLP and infection.