Jianpi-yangwei (JPYW), a traditional Chinese medicine (TCM), helps to nourish the stomach and spleen and is primarily used to treat functional declines related to aging. This study aimed to explore the antiaging effects and mechanism of JPYW by employing a Caenorhabditis elegans model. Wild-type C. elegans N2 worms were cultured in growth medium with or without JPYW, and lifespan analysis, oxidative and heat stress resistance assays, and other aging-related assays were performed. The effects of JPYW on the levels of superoxide dismutase (SOD) and the expression of specific genes were examined to explore the underlying mechanism of JPYW. Compared to control worms, JPYW-treated wild-type worms showed increased survival times under both normal and stress conditions (P < 0.05). JPYW-treated worms also exhibited enhanced reproduction, movement and growth and decreased intestinal lipofuscin accumulation compared to controls (P < 0.05). Furthermore, increased activity of SOD, downregulated expression levels of the proaging gene clk-2 and upregulated expression levels of the antiaging genes daf-16, skn-1, and sir-2.1 were observed in the JPYW group compared to the control group. Our findings suggest that JPYW extends the lifespan of C. elegans and exerts antiaging effects by increasing the activity of an antioxidant enzyme (SOD) and by regulating the expression of aging-related genes. This study not only indicates that this Chinese compound exerts antiaging effects by activating and repressing target genes but also provides a proven methodology for studying the biological mechanisms of TCMs.