How does sugar act as a food preservative?
Sugar acts as a food preservative by drawing out moisture from food through osmosis. This creates an environment too dry for most bacteria, yeasts, and molds to grow and spoil the food. High sugar concentrations also inhibit microbial growth by lowering water activity.