Rosemary contains several active compounds such as carnosic acid, rosmarinic acid, and ursolic acid, which are known for their antioxidant properties. These compounds help neutralize free radicals, thereby reducing oxidative stress and preventing DNA damage, a precursor to cancer. Additionally, rosemary's anti-inflammatory properties may help reduce chronic inflammation, which is linked to cancer development.