Pneumonia is an infection of the lung. This section reviews the different parts of the respiratory system. It will also explain how the immune system helps prevent lung infections.