Resveratrol is a type of polyphenol, specifically a stilbenoid. It functions primarily as a phytoalexin in plants, meaning it is produced in response to stress or injury. In humans, resveratrol is implicated in various beneficial health effects, including anti-inflammatory, antioxidant, and anticancer properties.