Plants get energy from photosynthesis, which uses sunlight, air, water, and nutrients from the soil to produce food for the plant. Animals get energy by consuming either plants as herbivores, other animals as carnivores, or both plants and animals as omnivores. All living things need energy from food to grow and stay healthy.