The increased excretion of sodium and water by the kidneys in the first days of a fast, driven by falling insulin. This rapid mineral loss is the main reason fasting can bring on headaches, dizziness, and cramps, and the reason replacing electrolytes matters as a fast lengthens.