This study identifies a D. melanogaster gene that structurally resembles vertebrate GR and is functionally necessary for the steroid-mediated immunosuppression to fungal infections. Here, NR3C1 is linked to fungal infectious disease.