The sun heats the ocean's surface and the air during the day, causing water molecules to evaporate. Temperature, surface area, wind speed, and humidity influence liquids' evaporation rate. When water vapor condenses during the formation of clouds, energy releases into the atmosphere through latent heating.