Alveolar spaces are the tiny air sacs in the lungs where gas exchange occurs. These spaces are lined by a thin layer of epithelial cells and are surrounded by capillaries, facilitating the exchange of oxygen and carbon dioxide between the air and blood.