A chest infection is an infection of the lungs or airways. The main types of chest infection are bronchitis and pneumonia. Most bronchitis cases are caused by viruses, whereas most pneumonia cases are due to bacteria. These infections are usually spread when an infected person coughs or sneezes.