Producers, such as plants and algae, are the foundation of a food web. They convert sunlight into energy through photosynthesis and provide food for primary consumers.