Deficiency of mannose-binding lectin is a risk of Pneumocystis jirovecii pneumonia in a natural history cohort of people living with HIV/AIDS in Northern Thailand. Here, MBL2 is linked to pneumocystosis.