Chronic mucocutaneous candidiasis (CMC) is frequently associated with T cell immunodeficiencies. Specifically, the proinflammatory IL-17A–producing Th17 subset is implicated in protection against fungi at epithelial surfaces. In autoimmune polyendocrinopathy candidiasis ectodermal dystrophy (APECED, or autoimmune polyendocrine syndrome 1), CMC is often the first sign, but the underlying immunodeficiency is a long-standing puzzle. In contrast, the subsequent endocrine features are clearly autoimmune, resulting from defects in thymic self-tolerance induction caused by mutations in the autoimmune regulator ( AIRE). We report severely reduced IL-17F and IL-22 responses to both Candida albicans antigens and polyclonal stimulation in APECED patients with CMC. Surprisingly, these reductions are strongly associated with neutralizing autoantibodies to IL-17F and IL-22, whereas responses were normal and autoantibodies infrequent in APECED patients without CMC. Our multicenter survey revealed neutralizing autoantibodies against IL-17A (41%), IL-17F (75%), and/ or IL-22 (91%) in >150 APECED patients, especially those with CMC. We independently found autoantibodies against these Th17-produced cytokines in rare thymoma patients with CMC. The autoantibodies preceded the CMC in all informative cases. We conclude that IL-22 and IL-17F are key natural defenders against CMC and that the immunodeficiency underlying CMC in both patient groups has an autoimmune basis.