Gas exchange occurs in the alveoli, which are tiny, balloon-shaped structures in the lungs. It is when oxygen is absorbed into the bloodstream and carbon dioxide is released.