Sorbic acid, or 2,4-hexadienoic acid, is a natural organic compound used as a food preservative. It has the chemical formula C6H8O2. It was first isolated from the unripe berries of the Rowan (Sorbus aucuparia),
hence its name.