The aim of this study was to evaluate the antifungal activity and the toxicity of ellagic acid (EA) using a Drosophila melanogaster model. Candida albicans bacteria were inoculated into Toll heterozygous flies. Survival curves were obtained for the evaluation of the antimicrobial effect and toxicity of EA. A protective effect of EA against fungal infection in Drosophila melanogaster was observed at nontoxic concentrations. This study showed that EA is a promising tool for the treatment of candidiasis.