Onions contain organosulfur compounds like allyl propyl disulfide that produce their characteristic pungent smell when cells are damaged. These sulfur-containing compounds are secondary metabolites that give Allium vegetables their distinctive aroma and flavor.