An ecosystem is made up of living things and their physical environment that interact and depend on each other. Sunlight provides the initial energy that plants capture through photosynthesis and convert into food, while consumers obtain energy by eating plants or other animals. Decomposers break down waste and dead organisms to recycle nutrients and energy back into the ecosystem. Multiple food chains interconnect to form complex food webs as most organisms have more than one source of food. Energy and nutrients are transferred between producers, consumers, and decomposers in an ecosystem.