Ellagic acid is a natural polyphenol found in various fruits and vegetables. Numerous studies have shown that ellagic acid has beneficial effects on human health. In this study, we investigated the stress resistant action of ellagic acid in Caenorhabditis elegans (C. elegans). Notably, 50 μM ellagic acid prolonged the lifespan of C. elegans by 36.25%, 36.22%, 155.1%, and 79.07% under ultraviolet radiation stress, heat stress, oxidative stress, and Pseudomonas aeruginosa infection stress, respectively. Furthermore, the mechanism by which ellagic acid reduces the damage caused by ultraviolet radiation in C. elegans was explored. Ellagic acid could significantly induce the nucleus translocation of DAF-16 and, thereby, activate a series of target genes to resist ultraviolet radiation stress. Moreover, ellagic acid also significantly increased the expression of SOD-3 by 3.61 times and the activity of superoxide dismutase by 3.70 times to clean out harmful reactive oxygen species in C. elegans exposed to ultraviolet radiation stress. In both daf-16 mutant and daf-2;daf-16 double-mutant worms exposed to ultraviolet radiation, ellagic acid could no longer prolong their lifespan. These results indicate that ellagic acid plays an important role in resisting ultraviolet radiation stress in C. elegans, probably in an insulin/IGF-1 signaling pathway-dependent way.