Photosynthesis is the process by which plants convert carbon dioxide and water into glucose and oxygen using energy from sunlight. It requires the ingredients of water, carbon dioxide, light, and chlorophyll. Water is transported through the plant from the roots to the leaves, while carbon dioxide enters through pores in the leaves. Chlorophyll in the chloroplasts captures light energy to drive the reaction that produces glucose and oxygen. At night, plants respire like animals by absorbing oxygen and releasing carbon dioxide. Some plants are carnivorous and obtain nutrients by trapping and digesting animal prey using various trap types like pitfall, snap, flypaper, and suction traps.