Plants are a major group of living things that includes trees, flowers, herbs, ferns and mosses. Through photosynthesis, plants use carbon dioxide, water and sunlight to produce their own food in the form of sugars. Photosynthesis occurs in the chloroplasts of leaves and uses energy from sunlight to convert carbon dioxide and water into oxygen and energy-rich organic compounds. Some plants have adapted to grow in nutrient-poor soil by obtaining nutrients from trapping and consuming small animals, making them carnivorous plants. True carnivorous plants evolved independently at least nine times and include over 583 species across a dozen genera.