Gas exchange of oxygen and carbon dioxide takes place in the alveoli . Oxygen from the inhaled air diffuses through the walls of the alveoli and adjacent capillaries into the red blood cells . The oxygen is then carried by the blood to the body tissues . They are surrounded by numerous capillaries