The walls of the alveoli share a membrane and with the capillaries. That's how close they are. This lets oxygen and carbon dioxide diffuse, or move freely, between the respiratory system and the bloodstream. Oxygen molecules attach to red blood cells, which travel back to the heart.