The present invention relates to an improved process for fermenting a sugar-containing material and an improved method for preventing bacterial infection in a fermentation process by using performic acid. The fermentation process is primarily the fermentation of sugar-containing material, for instance sugarcane, into ethanol. The present invention further relates to the manufacture of ethanol and the ethanol so obtained.