The alveoli are very thin. Oxygen goes from the air into the blood through the alveoli. At the same time, carbon dioxide leaves the blood through the alveoli and goes into the lungs. It is then breathed out.