Introduction: Pneumocystis pneumonia (PcP) has classically been described as a serious complication in patients infected with the human immunodeficiency virus (HIV). However, the emerging number of conditions associated with immunosuppression has led to its appearance in other patient populations, such as those receiving chronic corticosteroid therapy, those with hematological or solid malignancies, transplant recipients and those who receive immunomodulatory or biological therapy. Areas covered: This article reviews the most recent publications on PcP in the HIVinfected and HIV-uninfected population, focusing on epidemiology, diagnostic, therapy and prevention. The data discussed here were mainly obtained from a non-systematic review using Medline and references from relevant articles including randomized clinical trials, meta-analyses, observational studies and clinical reviews. Eligible studies were selected in two stages: sequential examination of title and abstract, followed by full text. Expert opinion: Widespread use of antiretroviral and prophylactic therapy in HIVinfected patients has decreased the incidence of PcP in this population. However, the growing incidence of Pneumocystis infection in the HIV-uninfected population suggests the need for new global epidemiological studies in order to identify the true scale of the disease in this population. These data would allow us to improve diagnosis, therapeutic strategies, and clinical management. It is very important that both patients and physicians realize that HIV-uninfected patients are at risk of PcP and that rapid diagnosis and early initiation of treatment are associated with better prognosis. Currently, in-hospital mortality rates are very high: 15% for HIV-infected patients and 50% in some HIV-uninfected patients. Therefore, adequate preventive measures should be implemented to avoid the high mortality rates seen in recent decades.