The blood–air barrier (alveolar–capillary barrier or membrane) exists in the gas exchanging region of the lungs. It exists to prevent air bubbles from forming in the blood, and from blood entering the alveoli. It is formed by the type 1 pneumocytes of the alveolar wall, the endothelial cells of the capillaries and the basement membrane between the two cells.