Stomata are tiny pores present on the surface of the leaves. Massive amount of gaseous exchange takes place in the leaves through these pores for the purpose of photosynthesis. The opening and closing of the pore is a function of the guard cells. The guard cells swell when water flows into them, causing the stomatal pore to open. Similarly, the pore closes when the guard shell shrinks.