Community-acquired pneumonia (CAP) is a common cause of illness worldwide with a wide range of clinical presentations from mild to severe. CAP refers to an acute lung infection acquired outside of a hospital setting, while nosocomial pneumonia is hospital-acquired. Common causative pathogens include Streptococcus pneumoniae, Haemophilus influenzae, Legionella pneumophila, and respiratory viruses. Risk factors include older age, smoking, and chronic medical conditions. Diagnosis involves physical exam, chest imaging, and laboratory tests to identify the pathogen to guide antibiotic treatment based on severity.