Conversion of organic material by organisms, especially bacteria, fungi or yeasts in order to produce byproducts of fermentation such as alcohol or methane. Converting sugar by yeasts to make wine or beer is a form of fermentation.