An enzyme-linked immunosorbent assay and a Western blot analysis were developed to study the antibody response to Pneumocystis carinii in serum and bronchoalveolar lavage fluid from 27 human immunodeficiency virus 27 (HIV)-infected patients with P. carinii pneumonia (Pcp), 32 patients without Pcp, and 51 HIV-negative controls. Urea was used for the correct dilution of epithelial lining fluid, and albumin was used to evaluate transudation from plasma for the assessment of local production of antibodies to P. carinii. By contrast with those of immunoglobulin G (IgG), IgA responses to P. carinii were increased in serum from HIV-positive patients compared to negative controls. Local production of antibodies to P. carinii, especially IgA, was decreased in patients with Pcp. In a study of 10 patients of each group, IgG and IgA responses to gp116 from P. carinii were lower in patients with Pcp than in other groups. These results suggest that, in addition to alveolar macrophages, local antibodies may play a role in host defense against P. carinii.