BackgroundThe advent of culture-independent, next-generation DNA sequencing has led to the discovery of distinct lung bacterial communities. Studies of lung microbiome taxonomy often reveal only subtle differences between health and disease, but host recognition and response may distinguish the members of similar bacterial communities in different populations. Magnetic-activated cell sorting has been applied to the gut microbiome to identify the numbers and types of bacteria eliciting a humoral response. We adapted this technique to examine the populations of immunoglobulin-bound bacteria in the lung.MethodsSixty-four individuals underwent bronchoalveolar lavage (BAL). We separated immunoglobulin G-bound bacteria using magnetic-activated cell sorting and sequenced the 16S rRNA gene on the Illumina MiSeq platform. We compared microbial sequencing data in IgG-bound bacterial communities compared to raw BAL then examined the differences in individuals with and without HIV as a representative disease state.ResultsImmunoglobulin G-bound bacteria were identified in all individuals. The community structure differed when compared to raw BAL, and there was a greater abundance ofPseudomonasand fewer oral bacteria in IgG-bound BAL. Examination of IgG-bound communities in individuals with HIV demonstrated the differences in Ig-bound bacteria by HIV status that were not seen in a comparison of raw BAL, and greater numbers of immunoglobulin-bound bacteria were associated with higher pulmonary cytokine levels.ConclusionsWe report a novel application of magnetic-activated cell sorting to identify immunoglobulin G-bound bacteria in the lung. This technique identified distinct bacterial communities which differed in composition from raw bronchoalveolar lavage, revealing the differences not detected by traditional analyses. Cytokine response was also associated with differential immunoglobulin binding of lung bacteria, suggesting the functional importance of these communities.Video AbstractSupplementary InformationThe online version contains supplementary material available at 10.1186/s40168-022-01434-5.