Fermentation involves microorganisms breaking down compounds and carrying out metabolic activities under aerobic or anaerobic conditions. There are three main types of fermentation - acetic acid, lactic acid, and alcoholic fermentation. Acetic acid fermentation produces vinegar, lactic acid fermentation produces pickled foods, and alcoholic fermentation produces drinks like beer, wine and cider through conversion of sugars to alcohol and carbon dioxide. Fermentation makes foods easier to digest, preserves them without use of heat, and was one of the earliest food preservation methods.