Pneumonia happens when an infection, usually from bacteria, viruses, or fungi, causes inflammation in the tiny air sacs of your lungs. These sacs fill up with fluid or pus, making it harder for your lungs to work properly and get oxygen into your blood.
It can affect one lung or both, and severity varies a lot from person to person. Healthy adults may recover with rest and medication, while young children, older adults, and people with weaker immune systems are more likely to need closer medical care.