Botanicals possess numerous bioactivities, and some promote healthy aging. Dietary macronutrients are major determinants of life span. The interaction between botanicals and macronutrients that modulates life span is not well understood. Here, we investigated the effect of a cranberry-containing botanical on life span and the influence of macronutrients on the longevity-related effect of cranberry in Drosophila. Flies were supplemented with cranberry on three dietary conditions: standard, high sugar-low protein, and low sugar-high protein diets. We found that cranberry slightly extended life span in males fed with the low sugar-high protein diet but not with other diets. Cranberry extended life span in females fed with the standard diet and more prominently the high sugar-low protein diet but not with the low sugar-high protein diet. Life-span extension was associated with increased reproduction and higher expression of oxidative stress and heat shock response genes. Moreover, cranberry improved survival of sod1 knockdown and dfoxo mutant flies but did not increase wild-type fly's resistance to acute oxidative stress. Cranberry slightly extended life span in flies fed with a high-fat diet. These findings suggest that cranberry promotes healthy aging by increasing stress responsiveness. Our study reveals an interaction of cranberry with dietary macronutrients and stresses the importance of considering diet composition in designing interventions for promoting healthy aging.