Flavonoids function primarily as antioxidants, scavenging free radicals that can damage cells and contribute to chronic diseases, including cancer. They also modulate various signaling pathways and gene expression, which can influence cell proliferation, apoptosis, and angiogenesis.