Small balloon-like sacs called alveoli are at the end of the bronchial tubes. 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 where it is breathed out.