We found that polymorphisms affecting the expression and/or function of IDO1 associate with increased risk of aspergillosis in the two cohorts of patients. Here, IDO1 is linked to aspergillosis.