Ecosystems are composed of two main components: biotic (living) and abiotic (non-living).