In deserts, the climate is very hot and the amount of rainfall is very low. If desert plants take CO2 during day, lots of water will be lost. To prevent the water loss some of the desert plants take CO2 during night.
These plants undergo a different type of photosynthesis, known as crassulacean acid metabolism, or CAM. The cells of these plants contain enzymes that are able to metabolize carbon dioxide at night, so the plant can close the stomata during daylight hours and open them when temperatures are cooler and evaporation is reduced. Carbon dioxide is stored in organic acids at night and released within the plant during the day so the normal photosynthetic pathways can synthesize sugars using sunlight.