This document presents the evidence-based guidelines of the Swedish Society of Infectious Diseases for the management of adult immunocompetent patients with community-acquired pneumonia (CAP), who are assessed at hospital. The prognostic score 'CURB-65' is recommended for all CAP patients in the emergency room. The score provides an assessment tool for the decision regarding outpatient treatment or level of hospital supervision, the choice of microbiological investigations, and empirical antibiotic treatment. In patients with non-severe CAP (CURB-65 score 0-2) we recommend initial narrow-spectrum antibiotic treatment, orally or intravenously, primarily directed at Streptococcus pneumoniae. In those with CURB-65 score 3, penicillin G or a cephalosporin intravenously is recommended. For CURB-65 score 0-3 atypical pathogens should be covered only when they are suspected on clinical or epidemiological grounds. In patients with CURB-65 score 4-5 intravenous combination therapy with either cephalosporin/macrolide or penicillin G/fluoroquinolone is recommended. Efforts should be made to identify the CAP aetiology in order to support the ongoing antibiotic treatment or to suggest treatment alterations. Recommended measures for prevention of CAP include influenza -- and pneumococcal -- vaccination to risk groups and efforts for smoking cessation.