The biochemical production of fat, especially the conversion of carbohydrate into fat so that it may be stored as a long-term source of energy when food is scarce