Icy dessert began as a chemistry hack: the same saltpeter that could help power gunpowder also helped freeze sweetened liquids into crystals you could eat. Long before modern refrigeration, early experimenters discovered that mixing salts with ice could pull heat out of a syrup faster than the surrounding air.
The key lies in thermodynamics and phase transition. When saltpeter and other nitrates dissolve in water around a vessel of flavored liquid, they trigger an endothermic reaction: the solution absorbs heat as ionic bonds break and reorganize. At the same time, the salt lowers the freezing point, a classic example of freezing point depression. Ice around the container melts but, in doing so, extracts heat from the liquid inside, driving it below the temperature at which plain water would freeze.
This improvised refrigeration loop turned bowls and basins into early heat exchangers. By stirring to control nucleation and crystal growth, makers could manage texture, delaying large ice crystals and getting something closer to a smooth slush. Over time, that basic protocol migrated from court kitchens to street vendors and, eventually, industrial freezers, but the underlying chemistry of salt solutions, latent heat, and controlled crystallization still defines how ice cream is engineered today.