An ecosystem includes both living and non-living components that interact with each other. Living things in an ecosystem include producers like plants, primary consumers like herbivores, secondary consumers like carnivores, and decomposers like fungi and bacteria. These organisms are organized into food chains and interconnected food webs. Some major ecosystems include forests, grasslands, deserts, marine ecosystems like coral reefs, and urban ecosystems created by human activity.