Several factors increase the risk of pneumonia, including age (young children and the elderly), weakened immune system (due to illness or medication), smoking, chronic lung diseases (like COPD), recent respiratory infections and exposure to certain environmental factors (such as pollutants or secondhand smoke). Vaccination, good hygiene, and a healthy lifestyle can reduce the risk.