Every living organisms & the environment surrounds them can be a part of an ecosystem. They are classified in two categories:
1.) Abiotic factors (Non-living): Light, Heat Temperature, Soil
2.) Biotic factors (Living): Man, Plants, Fungi, bacteria etc.
Hope this helps!