Lung infections caused by bacteria are often not preventable. However, maintaining good hygiene such as thorough hand washing routines can prevent the germs that cause infections from spreading. Avoiding contact with people infected with colds or the flu can prevent viral infections. Because the flu virus can cause some lung infections, getting vaccinated can offer protection. People can lower their overall risk of developing lung infections of both kinds by maintaining a healthy diet and exercise routine, quitting smoking, and avoiding smoky environments.

fcafotodigital / Getty Images
This site offers information designed for educational purposes only. You should not rely on any information on this site as a substitute for professional medical advice, diagnosis, treatment, or as a substitute for, professional counseling care, advice, diagnosis, or treatment. If you have any concerns or questions about your health, you should always consult with a physician or other healthcare professional.