Antibodies secreted at the mucosal surface play an integral role in immune defense by serving to neutralize the pathogen and promote its elimination at the site of entry. Secretory immunoglobulin A (IgA) is a predominant Ig isotype at mucosal surfaces whose epithelial cells express polymeric Ig receptor capable of transporting dimeric IgA to the lumen. Although the role of IgA in intestinal mucosa has been extensively studied, the cell types responsible for secreting the IgA that protects the host against pathogens in the lower respiratory tract are less clear. Here, using a mouse model of influenza virus infection, we demonstrate that intranasal, but not systemic, immunization induces local IgA secretion in the bronchoalveolar space. Using single-cell RNA sequencing, we found a heterogeneous population of IgA-expressing cells within the respiratory mucosa, including tissue-resident memory B cells, plasmablasts, and plasma cells. IgA-secreting cell establishment within the lung required CXCR3. An intranasally administered protein-based vaccine also led to the establishment of IgA-secreting cells in the lung, but not when given intramuscularly or intraperitoneally. Last, local IgA secretion correlated with superior protection against secondary challenge with homologous and heterologous virus infection than circulating antibodies alone. These results provide key insights into establishment of protective immunity in the lung based on tissue-resident IgA-secreting B cells and inform vaccine strategies designed to elicit highly effective immune protection against respiratory virus infections.