Vitamin C, or ascorbic acid, acts as an antioxidant and helps prevent food spoilage by slowing down the oxidation process. It inhibits the enzymatic browning of fruits and vegetables, preserving their color and freshness. Additionally, vitamin C can neutralize free radicals, delaying the deterioration of food and extending its shelf life.