When we breathe, air moves through the bronchi, the bronchioles and inside the alveoli.
From the alveoli, oxygen goes into your blood while carbon dioxide is expelled. When you have pneumonia, the alveoli become inflamed (irritated and swollen) and fill with fluid, so that it becomes difficult to breathe.