Water distillation units function by heating water to create steam, which is then condensed back into pure liquid form, effectively removing impurities and contaminants.