When the plant is photosynthesising during the day, these features allow carbon dioxide to diffuse into the spongy mesophyll cells, and oxygen to diffuse out of them. To enter the leaf, gases diffuse through small pores called stomata. As the stomata open, water is lost by the process of transpiration. Closing the stomata helps to control water loss.