When the guard cells are turgid, the stomatal pore opens, allowing for the exchange of gases. When the guard cells are flaccid, the stomatal pore closes, preventing the loss of water vapour from the leaf.
The opening and closing of stomata is controlled by a number of factors, including light intensity, temperature, and humidity. Stomata open in response to light and close in response to darkness. Stomata also open in response to high temperatures and low humidity, and close in response to low temperatures and high humidity.