Carotenoids function as antioxidants, neutralizing free radicals that can damage cells and lead to chronic diseases, including cancer. They also enhance the immune system and can modulate gene expression, which may influence cancer development and progression.