An ecosystem includes all living (biotic) and nonliving (abiotic) factors in an area. Energy flows: producers → primary consumers → secondary consumers → decomposers. Only ~10% of energy transfers between trophic levels. Biomes are large ecosystems defined by climate.