Gas exchange occurs in the alveoli. Oxygen from inhaled air diffuses across the thin walls of the alveoli and enters the bloodstream in the surrounding capillaries. Simultaneously, carbon dioxide from the blood diffuses into the alveoli to be exhaled. The thin barrier formed by Type I Pneumocytes and the capillary endothelial cells facilitates this process.