Carbon dioxide enters the leaf through stomata. Stomata are tiny little holes that are on the bottom of the leaf. Oxygen leaves the plant during photosynthesis. It leaves because during the light dependent stages, photons of light separate water into oxygen and hydrogen. The oxygen then diffuses out of the plant releasing oxygen into the air.