Immune cells in the lungs are important for maintaining lung function. The importance of immune cells in defending against lung diseases and infections is increasingly recognized. However, a primary knowledge gaps in current studies of lung immune cells is the understanding of their subtypes and functional heterogeneity. Increasing evidence supports the existence of novel immune cell subtypes that engage in the complex crosstalk between lung-resident immune cells, recruited immune cells, and epithelial cells. Therefore, further studies on how immune cells respond to perturbations in the pulmonary microenvironment are warranted. This review explores the processes behind the formation of the immune cell niche during lung development, and the characteristics and cell interaction modes of several major lung-resident immune cells. It indicates that distinct lung microenvironments or inflammatory niches can mediate the formation of different cell subtypes. These findings summarize and clarify paths to identify new cell subtypes that originate from resident progenitor cells and recruited peripheral cells, which are remodeled by the pulmonary microenvironment. The development of new techniques combining transcriptome analysis and location information is essential for identifying new immune cell subtypes and their relative immune niches, as well as for uncovering the molecular mechanisms of immune cell-mediated lung homeostasis.