Plants evolved resveratrol to defend against stress, infection, and the harsh, damaging effects of daylong exposure to the sun’s destructive ultraviolet rays.