Taken together, we here show that STIM1 is a critical regulator of antifungal immunity by regulating the expression of cytokines and metabolic pathways in non‐pathogenic Th17 cells, which may explain the increased susceptibility of patients with STIM1 and ORAI1 mutations to fungal infections. This evidence concerns the gene ORAI1 and fungal infectious disease.