Community-acquire pneumonia (CAP) is a disease in which individuals who have not recently been hospitalized develop an infection of the lungs (pneumonia). CAP is a common illness and can affect people of all ages. CAP often causes problems like breathing, fever, chest pains, and a cough. CAP occurs because the areas of the lung which absorb oxygen (alveoli) from the atmosphere become filled with fluid and cannot work effectively.