Photosynthesis is the process by which autotrophs like plants, algae, and some bacteria use sunlight to produce carbohydrates as food. Autotrophs are living things that can capture energy from sunlight or chemicals to make their own food, while heterotrophs like humans get food by consuming or eating other organisms. During photosynthesis, autotrophs use the sun's energy to produce carbohydrates as food, and all life on Earth relies on autotrophs to obtain energy from the sun through photosynthesis.