The invention relates to a method of producing ethanol by fermentation, said method comprising a secondary liquefaction step in the presence of a thermostable acid alpha-amylase or, a thermostable maltogenic acid alpha-amylase.