Ginger contains the pungent compound gingerol, which is similar in structure to chilli’s capsaicin and pepper’s piperine. Heating converts gingerol to the less pungent zingerone; drying converts it to shogaol, which is about twice as strong-tasting. It is thought that these compounds evolved as a defence against herbivores as high concentrations are repellent to most mammals.