The primary functions of leaves include photosynthesis, the process in which light energy is converted to chemical energy in the form of sugars, and transpiration, the physiological loss of water in the form of water vapor, mainly from the stomata in leaves, but also through evaporation from the surfaces of leaves, flowers, and stems.