Primary producers—plants, algae, and bacteria—make up the base of the pyramid, the first trophic level. Through a process called photosynthesis, producers capture energy from the sun and use it to create simple organic molecules, which they use for food. Consumers constitute the upper trophic levels.