The lungs contain millions and millions of little air sacs called alveoli, surrounded by a network of blood capillaries. The blood passing next to the alveoli has just returned to the lungs from the rest of the body, so it contains lots of carbon dioxide and very little oxygen. Oxygen diffuses out of the alveolus into the blood. Carbon dioxide diffuses out of the blood into the alveolus to be breathed out.