The two components of an ecosystem are biotic (living) and abiotic (non-living) factors. Biotic factors include plants, animals, fungi, protists and bacteria. Abiotic factors include minerals, sunlight, air, climate and soil. An ecosystem is a community of living organisms interacting with each other and their non-living environment. Biotic factors such as plants and animals have different ecological roles as producers, consumers, and decomposers. Interactions within species are intraspecific, while those between species are interspecific.