The sulfur-containing compound responsible for garlic’s pungent smell is allicin.
Fresh garlic does not contain large amounts of allicin while its cells remain intact. Chopping, crushing, or chewing damages the tissue and allows the enzyme alliinase to convert the stored compound alliin into reactive intermediates that quickly form allicin.
Allicin is an unstable organosulfur compound, also called allyl thiosulfinate. It contributes to garlic’s characteristic aroma and flavor, but it soon breaks down into other sulfur compounds, including diallyl disulfide. That breakdown helps explain why raw, freshly crushed garlic smells different from cooked garlic.
A common mix-up is confusing allicin with alliin. Alliin is the precursor stored in intact garlic; allicin is the compound produced after the garlic is damaged. Allicin was first isolated and studied in 1944 by Chester J. Cavallito and John Hays Bailey.