Here's how it works:
* Sweat glands release water onto the skin.
* The water absorbs heat from the body as it evaporates. This is because it takes a lot of energy (latent heat of vaporization) to change water from a liquid to a gas.
* This heat loss cools the body down.
This process is essential for thermoregulation in many animals, including humans.